A lightweight and easy-to-use image slider built with HTML, CSS, and JavaScript. This slider enables you to showcase images in a responsive and interactive way, enhancing the visual appeal of your website.
- Simple Integration: Easily add to any webpage with minimal setup.
- Customizable Design: Adjust the look and feel with your own CSS.
- Lightweight: No dependencies on external libraries or frameworks.
- Cross-Browser Compatibility: Works on all modern browsers.
-
Download the Files: Clone or download the repository to your local machine.
-
Serve the
index.html
File: To view the slider in action, you’ll need to run a local server. Here are a few options:-
Using Live Server: If you're using Visual Studio Code, install the Live Server extension. Open the
index.html
file and click on "Open with Live Server." -
Using XAMPP: Download and install XAMPP. Move the project folder to the
htdocs
directory, then start the Apache server from the XAMPP Control Panel. Access the slider viahttp://localhost/your-folder-name/index.html
. -
Using Python: If you have Python installed, navigate to your project directory in the terminal or command prompt and run:
python -m http.server
This will start a simple HTTP server, which you can access at
http://localhost:8000/index.html
.
-
- The Simple Image Slider is designed to loop through the images continuously. Make sure that your image list in
Slider.js
is set up correctly to ensure seamless transitions.
- BTN.js: A simple button for the image slider.
- Slider.js : Exports the slider widget, which is imported into
script.js
. You can import it into any JavaScript file as needed.
- The Simple BTN is imported.
- A brief explanation of used shortcuts.
- The images list (you can use
fetch
if needed). - The slider widget is exported.
Contributions are welcome!
Creator: Subhaan Yaghouti - Maintainer of the project.
Contact: If you have any questions or feedback, feel free to reach out via yaghouti.1831@gmail.com or on Instagram @subhaan_yaghouti.