1.0.1 • Published 10 months ago

owsslider v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

OwsSlider

OwsSlider is a simple and customizable JavaScript slider library that allows you to create beautiful and responsive image sliders with optional autoplay, navigation, and customizable features.

Table of Contents

Installation

You can install OwsSlider via npm:

 npm install ows-slider



  Example Code
  
   <div  id="slider">
       <div class="slide"><img src="img1" alt="Image 1"></div>
       <div class="slide"><img src="img2" alt="Image 2"></div>
       <div class="slide"><img src="img3" alt="Image 3"></div>
   </div>


   <script type="module">
    // Import the Slider from the asset URL
    import Slider from "{{ asset('lib/index.js') }}";

    document.addEventListener('DOMContentLoaded', () => {
        
        // Initialize first slider with autoplay and navigation
            const slider1 = new Slider(document.getElementById('slider'), {
                autoplay: true,
                interval: 2000,
                navigation: true,
            });
    });
    </script>
1.0.1

10 months ago

1.0.0

10 months ago