Variable
Static Public Summary | ||
public |
Defaults for the presets. |
|
public |
Defaults for the presets. |
Static Private Summary | ||
private |
Default classList for the plugin. |
Static Public
public PLUGIN_DEFAULTS: object source
import {PLUGIN_DEFAULTS} from 'paraglider/src/config.js'
Defaults for the presets.
Properties:
Name | Type | Attribute | Description |
classNames | object |
|
Mapping of class names to be used by the plugin. |
classNames.pluginLoaded | string |
|
Applied when the plugin has been loaded |
classNames.init | string |
|
Applied when the plugin has been initialized. Removed on first interaction. |
classNames.slides | string |
|
This element will be used to track touches. This is the wrapper around the slides. |
classNames.slide | string |
|
Selector for each single slide. |
classNames.current | string |
|
Applied to the currently visible slide |
classNames.previous | string |
|
Applied to the previous slide in the queue |
classNames.next | string |
|
Applied to the next slide in the queue |
addClasses | object |
|
Map of class names to be added to slides. |
addClasses.previous | object |
|
Sets previous class name to slides. |
addClasses.current | object |
|
Sets current class name to slides. |
addClasses.next | object |
|
Sets next class name to slides. |
addMultiClasses | object |
|
Map of class names to be added to slides using a counter. |
addMultiClasses.previous | object |
|
Sets previous class name to slides using a counter. |
addMultiClasses.current | object |
|
Sets current class name to slides using a counter. |
addMultiClasses.next | object |
|
Sets next class name to slides using a counter. |
enableTouch | boolean |
|
Enable touch interaction. |
enableSwipe | boolean |
|
Enable mouse/drag/swipe interaction. |
loop | boolean |
|
Enable looping slides. |
onInit | onInit |
|
Callback when the slider has been created. |
onDestroy | onDestroy |
|
Callback when the slider has been destroyed. |
onSlide | onSlide |
|
Callback while the slider is moving. |
onEnd | onEnd |
|
Callback while the slider stopped moving. |
speed | number |
|
Animation duration when using paging. |
spring | number |
|
Animation duration when snapping. |
snapBackAt | number |
|
Amount of distance needed to snap. [0, 1] |
threshold | number |
|
Threshold of pixels until the sliding mechanisms is triggered. |
initialSlide | number |
|
Initially visible slide |
visibleSlides | number |
|
Amount of visible slides |
slideBy | number |
|
Amount of slides to slide on interaction |
public PRESET_DEFAULTS: object source
import {PRESET_DEFAULTS} from 'paraglider/src/config.js'
Defaults for the presets.
Properties:
Name | Type | Attribute | Description |
classNames | object |
|
Mapping of class names to be used by the plugin. |
classNames.pluginLoaded | string |
|
Applied when the plugin has been loaded |
classNames.init | string |
|
Applied when the plugin has been initialized. Removed on first interaction. |
classNames.slides | string |
|
This element will be used to track touches. This is the wrapper around the slides. |
classNames.slide | string |
|
Selector for each single slide. |
classNames.current | string |
|
Applied to the currently visible slide |
classNames.previous | string |
|
Applied to the previous slide in the queue |
classNames.next | string |
|
Applied to the next slide in the queue |
classNames.dot | string |
|
Selector for pager dots. |
classNames.active | string |
|
Active class for pager dots. |
classNames.nextButton | string |
|
Selector for the navigation to the next slide. |
classNames.prevButton | string |
|
Selector for the navigation to the previous slide. |
addClasses | object |
|
Map of class names to be added to slides. |
addClasses.previous | object |
|
Sets previous class name to slides. |
addClasses.current | object |
|
Sets current class name to slides. |
addClasses.next | object |
|
Sets next class name to slides. |
addMultiClasses | object |
|
Map of class names to be added to slides using a counter. |
addMultiClasses.previous | object |
|
Sets previous class name to slides using a counter. |
addMultiClasses.current | object |
|
Sets current class name to slides using a counter. |
addMultiClasses.next | object |
|
Sets next class name to slides using a counter. |
enableTouch | boolean |
|
Enable touch interaction. |
enableSwipe | boolean |
|
Enable mouse/drag/swipe interaction. |
loop | boolean |
|
Enable looping slides. |
onInit | onInit |
|
Callback when the slider has been created. |
onDestroy | onDestroy |
|
Callback when the slider has been destroyed. |
onSlide | onSlide |
|
Callback while the slider is moving. |
onEnd | onEnd |
|
Callback while the slider stopped moving. |
speed | number |
|
Animation duration when using paging. |
spring | number |
|
Animation duration when snapping. |
snapBackAt | number |
|
Amount of distance needed to snap. [0, 1] |
threshold | number |
|
Threshold of pixels until the sliding mechanisms is triggered. |
initialSlide | number |
|
Initially visible slide |
visibleSlides | number |
|
Amount of visible slides |
slideBy | number |
|
Amount of slides to slide on interaction |
Static Private
private classNames: object source
import {classNames} from 'paraglider/src/config.js'
Default classList for the plugin. This object can be replaced but not merged
Properties:
Name | Type | Attribute | Description |
pluginLoaded | string | Applied when the plugin has been loaded |
|
init | string | Applied when the plugin has been initialized. Removed on first interaction. |
|
slides | string | This element will be used to track touches. This is the wrapper around the slides. |
|
slide | string | Selector for each single slide. |
|
current | string | Applied to the currently visible slide |
|
previous | string | Applied to the previous slide in the queue |
|
next | string | Applied to the next slide in the queue |