HausCloud
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by HausCloud
-
-
Going to my personal site, http://hauscloud.me, I can't figure out why my object / svg element is not firing off it's click event. I'm trying to make the overlay disappear using GSAP when clicking on the X button. You can see the overlay by clicking on any of the projects. The event listener is binded on line 62 in the JS file. I've tried messing with z-index and pointer-events to no avail.
-
2 minutes ago, ZachSaucier said:
Thanks for the example. It's not scrolling because your document isn't scrolling. Your body is. So using the below instead fixes the issue:
gsap.to(document.body, {duration: 2, scrollTo: 400});
Alternatively, remove
overflow: auto;
from the body.Hey thanks, that worked! I knew it was something fundamental I was missing. I'm still pretty new to JS so again, thanks. Looks like I need to read up more. Also side question, are there resources you would recommend to learn vanilla JS ? I've heard everyone should learn vanilla then move onto a framework or library.
-
Unfortunately not. I have the website deployed via flask and AWS eb. I don't think a minimal demo is necessary just because the project is already so small and simple (except for my css file aka garbage). Below is the link.
http://hauscloud-dev.us-east-2.elasticbeanstalk.com/home
Hey thanks for the tip! Tried it, but doesn't quite get the scroll to work 😅
-
-
Trouble getting ScrollTo to work properly
in GSAP
Posted
Hey Zach, thanks for the advice. I'm still fairly new to frontend development, so please pardon my spaghetti css haha. I'll keep non-GSAP questions somewhere else.