![]() You can do something at special moments by registering Tiny-Swiper instance life hooks. Slide to specific index with specificated time duration.ĭestroy slider instance, detach all events listeners and reset style. SlideTo (targetIndex: number, duration?: number) Update instance status if DOM size changed. Update instance status if you changed DOM manually. Multiplier of mousewheel data, allows to tweak mouse wheel sensitivity If true, then active slide will be centered, not always on the left side. Number of slides per view (slides visible at the same time on slider's container). This option allows you to control resistance ratioĪn HTMLElement array which contains all elements that do not trigger swipe. Set to false if you want to disable resistant bounds But if you need to use e.preventDefault and you have conflict with it, then you should disable this parameter Passive event listeners will be used by default where possible to improve scrolling performance on mobile devices. Object with mousewheel parameters or boolean true to enable with default settings. If enabled, then propagation of "touchmove" will be stoppedĮnables navigation through slides using mouse wheel. If disabled, touchstart ( mousedown) event won't be preventedįorce to always prevent default for touchstart ( mousedown) event Ratio to trigger swipe to next/previous slide during long swipes.ĬSS class name of slide which is right before currently active slideĬSS class name of slide which is right after currently active slideĪllowable angle (in degrees) to trigger touch move. Minimal duration (in ms) to trigger swipe to next/previous slide during long swipes Time to suspend between two swip actions. Could be 'horizontal' or 'vertical' (for vertical slider).ĭuration of transition between slides (in ms)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |