swarmcity / SwarmCityDapp

Swarm City dApp FrontEnd
MIT License
28 stars 10 forks source link

fix the animations not showing on second entry to page #761

Closed hershkoy closed 6 years ago

hershkoy commented 6 years ago

The issue happens when the animation is 'exited' off screeen on animationExit.

There are two separate issues: 1) webcomponents: the reset is handled within the webcomponent. 2) pages: the animation is defined in sc-animation, and can be default or custom. also the the animation can be exited by 'transform' off screen, or by setting opacity to 0 (or both).

For the pages issues, I fixed in swarm-city.html by keeping track inside array all pages that were 'exited' (separately for 'transform' and 'opacity=0')

xardass commented 6 years ago

Seems to work fine! Let's wait a couple days to make sure there are no extra issues.

xardass commented 6 years ago

I will close this for now until we unbury the animation issue again