Snapdeckv1
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

keytypedefaultnote
scrollingSpeednumber700ms per transition
easingstringcubic-bezier(0.2,0.7,0.2,1)CSS easing function
keyboardScrollingbooleantruearrow / page / home / end keys
loopTopbooleanfalsewrap from first to last
loopBottombooleanfalsewrap from last to first
autoScrollingbooleantrueengage section snap
fitToSectionbooleantruesnap to nearest on resize
anchorsstring[][]per-section URL hashes
pluginsPlugin[][]registered plugins