Jump to content
Search Community

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

kaipeng test
Moderator Tag

Recommended Posts

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
})
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...