Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfir authored Jul 18, 2024
1 parent e3b6b00 commit ff3a727
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions README.md
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.

0 comments on commit ff3a727

Please sign in to comment.