-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
Responsive Slider | ||
This is a responsive image slider with navigation arrows and dot indicators. The slider is built using HTML, CSS, and JavaScript. | ||
|
||
Features | ||
Responsive design that works on different screen sizes. | ||
Navigation arrows for moving between slides. | ||
Dot indicators for direct navigation to specific slides. | ||
Fade-in animation for slides. | ||
Auto-sliding with a timer. | ||
Installation | ||
Clone the repository: | ||
|
||
sh | ||
Copy code | ||
git clone https://github.com/wyfir/Classic-Navigation-Menu.git | ||
Navigate to the project directory: | ||
|
||
sh | ||
Copy code | ||
cd Classic-Navigation-Menu | ||
Open index.html in your browser to view the slider. | ||
|
||
Usage | ||
To integrate the slider into your project, follow these steps: | ||
|
||
Include the Boxicons CSS: | ||
|
||
html | ||
Copy code | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css" /> | ||
Link your CSS file: | ||
|
||
html | ||
Copy code | ||
<link rel="stylesheet" href="./styles.css" /> | ||
Set up the HTML structure: | ||
|
||
html | ||
Copy code | ||
<div class="slider"> | ||
<!-- Slides --> | ||
<div class="myslide fade"> | ||
<div class="txt"> | ||
<h1>IMAGE 1</h1> | ||
<p>Web Developer<br />The code for this Slider is provided below</p> | ||
</div> | ||
<img class="slider_img" src="./imgs&icons/img1.jpg" /> | ||
</div> | ||
<!-- Repeat for more slides --> | ||
|
||
<!-- Navigation Arrows --> | ||
<a class="prev" onclick="plusSlides(-1)"><i class="bx bx-chevron-left"></i></a> | ||
<a class="next" onclick="plusSlides(1)"><i class="bx bx-chevron-right"></i></a> | ||
|
||
<!-- Dot Indicators --> | ||
<div class="dotsbox" style="text-align: center"> | ||
<span class="dot" onclick="currentSlide(1)"></span> | ||
<span class="dot" onclick="currentSlide(2)"></span> | ||
<span class="dot" onclick="currentSlide(3)"></span> | ||
</div> | ||
</div> | ||
Add your JavaScript file: | ||
|
||
html | ||
Copy code | ||
<script src="./script.js"></script> | ||
Configuration | ||
CSS: Customize the appearance of the slider by editing styles.css. | ||
JavaScript: Adjust the slider functionality and timing in script.js. | ||
Example | ||
<!-- Add a GIF or image link of your slider in action --> | ||
|
||
License | ||
This project is licensed under the MIT License. | ||
|
||
Acknowledgements | ||
Boxicons | ||
Jost Font | ||
Feel free to contribute to this project by opening issues or submitting pull requests. |