GithubHelp home page GithubHelp logo

polluxua / jetslider Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gavr-pavel/jetslider

0.0 0.0 0.0 40 KB

Simple plugin for making pretty transitions

Home Page: http://gavr-pavel.github.io/jetSlider/example/fullpage_example.html

JavaScript 49.13% HTML 50.87%

jetslider's Introduction

jetSlider

Simple plugin for making pretty transitions

Demo

Fullpage | Inline

Options

Option Type Default Description
slideSelector String 'section' Selector of the slide elements
transitionDuration Number 800 Duration of transition between slides
scroll Boolean true Changing slides by mouse scroll
keyboard Boolean true if parent element is <body>. Else false Changing slides by keyboard arrows
easing String 'ease-in-out' Easing function e.g. 'linear', 'ease-in', 'cubic-bezier(0.42,0,0.58,1)'...
onBeforeMove Function null Function which will be called with newIndex and oldIndex arguments every time when animation starts
onAfterMove Function null Function which will be called with newIndex and oldIndex arguments every time when animation ends
jsFallback Boolean true If true js fallback will be used for animations in browsers which don't support css transorms and transitions. If false slides will change without animation in those browsers

Options can be changed after initialization:

$('.slider').jetSlider(optionName, value);

Methods

$('.slider').jetSlider('moveto', index);
$('.slider').jetSlider('moveup');
$('.slider').jetSlider('movedown');
$('.slider').jetSlider('destroy');

Like declarative initialization?

You can initialize plugin without js code! Just add data-jetslider attribute to slider container.

Options can be customized by using data-* attributes:

<div class="main" data-jetslider data-slide-selector=".page" data-transition-duration="2000" data-easing="ease-in">
     <section class="page">
         ...
     </section>
     ...
     <section class="page">
         ...
     </section>
     ...
 </div>

jetslider's People

Contributors

gavr-pavel avatar

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.