Giter Club home page Giter Club logo

swiperrunner's Introduction

Swiper Runner

An easy way to use Swiper.js in your project with various options comes with Swiper as API.

Swiper Runner is a addon for Swiper.js

Usage Example:

Load the SuperRunner.js file as right after jquery.js and swiper.js loaded.

MARKUP: In this code you can see a attribute called "data-swiper-config" and here you can add your carousel configuration provided by Swiper API documentation as JSON Objects.

<div
   class="swiper-container"
   data-swiper-config='{"loop": true, "autoplay": 3000, "grabCursor": true, "paginationClickable": true}'
>
  <div class="swiper-wrapper">
    ....
    <div class="swiper-slide">Slide X</div>
    ....
  </div>

  <!-- Swiper Pagination -->
  <div class="swiper-pagination"></div>
  <!-- Swiper Nav Prev -->
  <div class="swiper-button-prev"></div>
  <!-- Swiper Nav Next -->
  <div class="swiper-button-next"></div>
</div>

SCRIPT:

var runner = new SwiperRunner('.swiper-container');

or you can create mullitple slider with with jQuery .each() function.

$('.swiper-container').each(function() {
	var $this = $(this);

	new SwiperRunner($this);
});

Please check examples folder for demos

swiperrunner's People

Contributors

aminulbd avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

swiperrunner's Issues

Need perfect integration with animate.css

Currently, basic support is available with swiperRunner but need to think about transition delay and animation delay as automatically calculated by elements.

What do you say? You can suggest me here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.