fullscreen snap slide - Free Download Mobile-friendly Fullscreen Slider With Snap scrolling - snapslide

Free Download Mobile-friendly Fullscreen Slider With Snap scrolling – snapslide

Posted on

This time I will share jQuery Plugin and tutorial about Mobile-friendly Fullscreen Slider With Snap scrolling – snapslide, hope it will help you in programming stack.

fullscreen snap slide - Free Download Mobile-friendly Fullscreen Slider With Snap scrolling - snapslide
File Size: 27.9 KB
Views Total: 2157
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

snapslide is a small and mobile-friendly jQuery plugin to create a fullscreen page slider or one page scroll webpage that enables the user to move between slides via mouse wheel or touch swipe events.

The plugin takes advantage of CSS Scroll Snap to make the page automatically snap to the next or previous page while scrolling down or up the document.

How to use it:

1. To use this plugin, include the snapslide plugin and other required resources on the page.

1 <link rel="stylesheet" href="/path/to/dist/snapslide.min.css" />
2 <script src="/path/to/cdn/jquery.min.js"></script>
3 <script src="/path/to/dist/snapslide-min.js"></script>

2. Add sections to the page slider.

01 <div class="snap-container">
02   <section>
03     <h2>Section 1</h2>
04   </section>
05   <section>
06     <h2>Section 2</h2>
07   </section>
08   <section>
09     <h2>Section 3</h2>
10   </section>
11 </div>

3. Create a vertical pagination to indicate on which page you’re viewing.

1 <ul class="nav-dots">
2   <li data-slide-link="0"></li>
3   <li data-slide-link="1"></li>
4   <li data-slide-link="2"></li>
5 </ul>

4. Override the default styles of the section.

01 .snap-container section::before {
02   /* sample graphic */
04   top: 0;
05   bottom: 0;
06   left: 0;
07   right: 0;
08   margin: auto;
09   content: '';
10   position: absolute;
11   display: inline-block;
12   width: 100%;
13   height: 100%;
14   background-position: center center;
15   background-size: cover;
16   background-repeat: no-repeat;
17   -webkit-transition: opacity 2s ease;
18   -moz-transition: opacity 2s ease;
19   -ms-transition: opacity 2s ease;
20   -o-transition: opacity 2s ease;
21   transition: opacity 2s ease;
22   opacity: 0.25;
23   z-index: -1;
24 }

This awesome jQuery plugin is developed by kordianszust. For more Advanced Usages, please check the demo page or visit the official website.

source : jquery.net