Docs / options
Options.
Every option has a default. Configure only what you need.
Defaults
defaultsts
{
scrollingSpeed: 700,
easing: 'cubic-bezier(0.2, 0.7, 0.2, 1)',
keyboardScrolling: true,
loopTop: false,
loopBottom: false,
autoScrolling: true,
fitToSection: true,
anchors: [],
slideSelector: '[data-snapdeck-slide]',
sectionSelector: '[data-snapdeck-section]',
plugins: [],
}Reference
| key | type | default | note |
|---|---|---|---|
scrollingSpeed | number | 700 | ms per transition |
easing | string | cubic-bezier(0.2,0.7,0.2,1) | CSS easing function |
keyboardScrolling | boolean | true | arrow / page / home / end keys |
loopTop | boolean | false | wrap from first to last |
loopBottom | boolean | false | wrap from last to first |
autoScrolling | boolean | true | engage section snap |
fitToSection | boolean | true | snap to nearest on resize |
anchors | string[] | [] | per-section URL hashes |
plugins | Plugin[] | [] | registered plugins |