Merge pull request #32485 from small1803/master

lory.js: update to match lory.js 2.5.3 API
This commit is contained in:
Pranav Senthilnathan 2019-01-30 16:18:14 -08:00 committed by GitHub
commit fe2a7fa11d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
// Type definitions for lory 2.2.1
// Type definitions for lory 2.5.3
// Project: https://github.com/meandmax/lory/
// Definitions by: kubosho <https://github.com/kubosho>
// philip bulley <https://github.com/milkisevil>
@ -80,6 +80,11 @@ interface LoryOptions {
* cubic bezier easing functions: http://easings.net/de (default: 'cubic-bezier(0.455, 0.03, 0.515, 0.955)').
*/
ease?: string;
/**
* the slide index to show when the slider is initialized ( default: 0 )
*/
initialIndex?: number;
/**
* if slider reached the last slide, with next click the slider goes back to the startindex (default: false).

View File

@ -19,6 +19,7 @@ import { lory } from 'lory.js';
rewindSpeed: 600,
snapBackSpeed: 200,
ease: 'ease',
initialIndex: 0,
rewind: true,
infinite: false,
classNameFrame: 'js_frame',