https://pandplus.com/
you can check console for error
other plugins are working fine but not smoothscroller
please help !!!
import gsap from "gsap"
import $ from "jquery";
import ScrollTrigger from 'gsap/ScrollTrigger'
import {ScrollSmoother} from "gsap/ScrollSmoother";
import DrawSVGPlugin from "gsap/DrawSVGPlugin";
import MorphSVGPlugin from "gsap/MorphSVGPlugin";
gsap.registerPlugin(ScrollTrigger, ScrollSmoother, DrawSVGPlugin, MorphSVGPlugin)
ScrollSmoother.create({
smooth: 1, // how long (in seconds) it takes to "catch up" to the native scroll position
});
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "mix",
"watch": "mix watch",
"watch-poll": "mix watch -- --watch-options-poll=1000",
"hot": "mix watch --hot",
"prod": "npm run production",
"production": "mix --production"
},
"devDependencies": {
"@babel/plugin-syntax-top-level-await": "^7.14.5",
"alpinejs": "^2.7.3",
"autoprefixer": "^10.4.7",
"axios": "^0.21",
"laravel-mix": "^6.0.43",
"lodash": "^4.17.19",
"postcss": "^8.4.13",
"postcss-import": "^12.0.1",
"resolve-url-loader": "^4.0.0",
"rtlcss": "^3.4.0",
"sass": "^1.51.0",
"sass-loader": "^12.6.0"
},
"dependencies": {
"@popperjs/core": "^2.10.2",
"@splidejs/splide": "^3.6.12",
"animate.css": "^4.1.1",
"bootstrap": "^5.1.3",
"bootstrap-icons": "^1.8.1",
"gsap": "npm:@gsap/shockingly@^3.10.4",
"jquery": "^3.6.0",
"wow.js": "^1.2.2"
}
}