text: import ScrollSnap from 'https://unpkg.com/scroll-snap/dist/esm/index.js'
  
  function callback() {
    console.log('snap')
  }
  
  const baseConfig = {
    timeout: 100,
    duration: 300,
    threshold: 0.2,
    easing: (t) => (t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t),
  }
  
  const containerVertical = document.getElementById('container')
  const snapVertical = new ScrollSnap(containerVertical, {
    snapDestinationY: '90%',
    ...baseConfig,
  }).bind(callback)
  
  const containerHorizontal = document.getElementById('container-horizontal')
  const snapHorizontal = new ScrollSnap(containerHorizontal, {
    snapDestinationX: '100%',
    ...baseConfig,
  }).bind(callback)
  