New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dvhb/jetslider

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dvhb/jetslider

Simple plugin for making beautiful single-page applications

1.0.2
latest
Source
npm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

jetSlider

Simple plugin for making beautiful page transitions

Demo

Fullpage | Inline

Options

OptionTypeDefaultDescription
slideSelectorString'section'Selector of the slide elements
transitionDurationNumber800Duration of transition between slides
scrollBooleantrueChanging slides by mouse scroll
keyboardBooleantrue if parent element is <body>. Else falseChanging slides by keyboard arrows
easingString'ease-in-out'Easing function e.g. 'linear', 'ease-in', 'cubic-bezier(0.42,0,0.58,1)'...
onBeforeMoveFunctionnullFunction which will be called with newIndex and oldIndex arguments every time when animation starts
onAfterMoveFunctionnullFunction which will be called with newIndex and oldIndex arguments every time when animation ends
jsFallbackBooleantrueIf 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>

License

MIT License © dvhb

Keywords

jquery

FAQs

Package last updated on 09 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts