SmoothSlider is a sleek, smooth, and modern image slider built with Tailwind CSS. It allows you to display images in a beautiful, fluid carousel, enhancing the user experience on your website.
slider-github-resized-finalized.mp4
- π Smooth sliding animations
- π Built with Tailwind CSS for responsive design
- π¨ Customizable size and duration
- πΌοΈ Displays images in a rotating, auto-scrolling manner
- β¨ Clean and simple code
To use SmoothSlider in your project, follow these steps:
-
Clone the repository:
git clone https://github.com/atmdevx/smooth-slider
-
Include the output.css file from Tailwind CSS in your HTML file:
<link href="./output.css" rel="stylesheet">
-
Add the HTML structure:
<div class="slider"> <img src="./images/01.png" alt="01"> <img src="./images/02.png" alt="02"> <img src="./images/03.png" alt="03"> <!-- Add more images as needed --> </div>
-
Customize the CSS (optional):
- You can change the slider width, height, and duration by adjusting the
:rootvariables in the CSS file.
- You can change the slider width, height, and duration by adjusting the
You can easily customize the slider by adjusting the following variables in the :root section of the CSS file:
--item-count: Number of images in the slider--width: Width of the slider (e.g.,400px)--height: Height of the slider (e.g.,400px)--duration: Duration of the slide transition (e.g.,8s)
This project is open-source and available under the MIT License.