google scrolling carousel - Download Google Style Overflow Scrolling Carousel - g-scrolling-carousel

Download Google Style Overflow Scrolling Carousel – g-scrolling-carousel

Posted on

This time I will share jQuery Plugin and tutorial about Google Style Overflow Scrolling Carousel – g-scrolling-carousel, hope it will help you in programming stack.

google scrolling carousel - Download Google Style Overflow Scrolling Carousel - g-scrolling-carousel
File Size: 4.72 KB
Views Total: 6958
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

g-scrolling-carousel is a jQuery plugin that displays a large group of items in a horizontal scrolling carousel/swiper just like Google’s rich results.

Works both on desktop and mobile.

Features:

  • Automatically shows navigation arrows.
  • Automatically hides the arrows on mobile devices.
  • Supports both mouse drag and touch swipe events.
  • Automatic left alignment.

How to use it:

1. Link to jQuery library and the g-scrolling-carousel plugin’s files.

1 <link href="jquery.g<a href="https://www.jqueryscript.net/tags.php?/Scroll/">Scroll</a>ing<a href="https://www.jqueryscript.net/tags.php?/Carousel/">Carousel</a>.css" rel="stylesheet"/>
3         integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
4         crossorigin="anonymous">
5 </script>
6 <script src="jquery.gScrollingCarousel.js"></script>

2. Add items to the scrolling carousel.

01 <div class="g-scrolling-carousel">
02   <div class="items">
03     <a href="https://www.jqueryscript.net">Item #1</a>
04     <a href="https://www.jqueryscript.net">Item #2</a>
05     <a href="https://www.jqueryscript.net">Item #3</a>
06     <a href="https://www.jqueryscript.net">Item #4</a>
07     <a href="https://www.jqueryscript.net">Item #5</a>
08     ...
09   </div>
10 </div>

3. Initialize the carousel by calling the function on the items. That’s it.

1 $(function(){
2   $(".g-scrolling-carousel .items").gScrollingCarousel();
3 });

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

source : jquery.net