forked from loryjs/lory
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefaults.js
More file actions
83 lines (71 loc) · 1.91 KB
/
defaults.js
File metadata and controls
83 lines (71 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
export default {
/**
* slides scrolled at once
* @slidesToScroll {Number}
*/
slidesToScroll: 1,
/**
* time in milliseconds for the animation of a valid slide attempt
* @slideSpeed {Number}
*/
slideSpeed: 300,
/**
* time in milliseconds for the animation of the rewind after the last slide
* @rewindSpeed {Number}
*/
rewindSpeed: 600,
/**
* time for the snapBack of the slider if the slide attempt was not valid
* @snapBackSpeed {Number}
*/
snapBackSpeed: 200,
/**
* Basic easing functions: https://developer.mozilla.org/de/docs/Web/CSS/transition-timing-function
* cubic bezier easing functions: http://easings.net/de
* @ease {String}
*/
ease: 'ease',
/**
* if slider reached the last slide, with next click the slider goes back to the startindex.
* use infinite or rewind, not both
* @rewind {Boolean}
*/
rewind: false,
/**
* number of visible slides or false
* use infinite or rewind, not both
* @infinite {number}
*/
infinite: false,
/**
* class name for slider frame
* @classNameFrame {string}
*/
classNameFrame: 'js_frame',
/**
* class name for slides container
* @classNameSlideContainer {string}
*/
classNameSlideContainer: 'js_slides',
/**
* class name for slider prev control
* @classNamePrevCtrl {string}
*/
classNamePrevCtrl: 'js_prev',
/**
* class name for slider next control
* @classNameNextCtrl {string}
*/
classNameNextCtrl: 'js_next',
/**
* class name for current active slide
* if emptyString then no class is set
* @classNameActiveSlide {string}
*/
classNameActiveSlide: 'active',
/**
* enables mouse events for swiping on desktop devices
* @enableMouseEvents {boolean}
*/
enableMouseEvents: false
};