mrfrancescomoro
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by mrfrancescomoro
-
-
On 10/29/2021 at 9:19 PM, OSUblake said:
I'm not sure I see what the issue is. If I scroll really fast with my mouse wheel on free spin, it will scroll all the way to the end, but that's what I would expect as the mouse it still technically scrolling. Is that what you mean?
Yeah, that's right but if you give just one hit at the scroll, like during a normal navigation of a website, the event seems to be called twice and the page scroll for two sections instead of one. Does it happens to you too or it's just me?
If you think it's not a gsap problem, apologies and I'll close this thread.
-
Hi everyone, I'm having some trouble with this script.
Basically what I'm trying to achieve is that on every mouse scroll event the page scroll to the next section and this the part that works; my problem is with the apple mouse, if you scroll to heavly, the scroll event seems to fire twice and that's the problem.
I'm not sure if the issue is within my gsap code or is just a vanilla js thing and I have to find a work-around to solve this.
See the Pen oNeYNvX by mrfrancescomoro (@mrfrancescomoro) on CodePen
-
Actually, I didn't know what I was doing
I didn't NEED that, I just thought it was the right way...
Thanks for the support anyway.
-
Hi everyone,
I am completely new to both GSAP and Gulp and I'm having troubles to run gulp after gsap installation.
Don't know what to do.
I have installed gsap this way:
"npm install --save-dev gsap"
and after that I add to my gulpfile.js gsap = require('gsap');
after that, i run gulp on my cmd and this shows up:
C:\xampp\htdocs\00testing_code\node_modules\gsap\src\uncompressed\TweenMax.js:2535 _doc = document, ^ ReferenceError: document is not defined at Function.<anonymous> (C:\xampp\htdocs\00testing_code\node_modules\gsap\src\uncompressed\TweenMax.js:2535:11) at check (C:\xampp\htdocs\00testing_code\node_modules\gsap\src\uncompressed\TweenMax.js:5858:61) at new Definition (C:\xampp\htdocs\00testing_code\node_modules\gsap\src\uncompressed\TweenMax.js:5875:10) at window._gsDefine (C:\xampp\htdocs\00testing_code\node_modules\gsap\src\uncompressed\TweenMax.js:5880:12) at Array.<anonymous> (C:\xampp\htdocs\00testing_code\node_modules\gsap\src\uncompressed\TweenMax.js:2488:11) at C:\xampp\htdocs\00testing_code\node_modules\gsap\src\uncompressed\TweenMax.js:7634:9 at Object.<anonymous> (C:\xampp\htdocs\00testing_code\node_modules\gsap\src\uncompressed\TweenMax.js:7645:3) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32)
What did I do wrong?!?
Am I missing something?
Thanks in advance.
Scroll event being called twice
in GSAP
Posted
Thank you guys for all the support, it turned out is just a mouse wheel problem!
As always, the mighty gsap is doing its works beautifully!
I've partially solved the problem disabling the scroll for longer period of time.
Maybe in the future I'll try to find a better solution but for now this will do the trick!
Thanks again!