Jump to content
Search Community

kaipeng

Plus
  • Posts

    4
  • Joined

  • Last visited

Posts posted by kaipeng

  1. I used ScrollSmoother in a Drupal site, for some reason when there are accordions inside the page, when open or close the accordion, the page height is not refreshed, which made it either unable to scroll all the way to the end of the footer when the accordion is open, or leave some empty space after the footer when the accordion is closed, any thoughts on solving the issue or refresh the page height when an accordion is open/close?

  2. Included the min file inside the folder, and registered the plugin, but caught the error:

    ScrollSmoother Uncaught TypeError: Cannot read properties of undefined (reading '_getVelocityProp')

    1257578358_ScreenShot2022-04-06at12_16_14PM.thumb.png.363bfe183383320e394960ba0aec1874.png

    gsap.registerPlugin(ScrollTrigger, ScrollSmoother)
     
    let smoother = ScrollSmoother.create({
    wrapper:"#smooth-wrapper",
    content: "#smooth-content",
    smooth: 2, // seconds it takes to "catch up" to native scroll position
    smoothTouch: 0.1,
    effects: true // look for data-speed and data-lag attributes on elements and animate accordingly
    })
×
×
  • Create New...