Jump to content
Search Community

Dissapearing Elements after Timeline completes

dtek516 test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi,

Im trying to animate a house with "rooms".

 

on page load, the house builds itself, then (at the moment), if you click the floating top left plus sign, it will zoom the house out, open a door and reveal a room. If you then click the house icon, the idea is that the house zooms back out - door shuts- and you can make another selection.

 

Problem I'm having, is the rotateY on the door. Sometimes the entire door disappears after rotating, sometimes doesnt. I've tried fromTo, set, clearProps. Nothing is working. Am I missing something here?

 

Thanks!

See the Pen by house (@house) on CodePen

Link to comment
Share on other sites

Hello dtek516 and Welcome to the GreenSock forum!

Sorry your having issues. This will be really hard to debug within the browser. Without being able to test your code live. If you can please isolate your issue so its the door only, since you have a lot of code to go through, that is not editable on the fly.

 

I'm seeing the issue being when reversing in your main.js file on Line 94 when you clearProps of transform-origin  and scale.

 

But again to better help you please create reduced codepen demo that shows your issue so we can test it live. ;)

 

 

Thanks! :)

  • Like 1
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...