ynoproject / ynohome

2 stars 6 forks source link

Wait for page unload to reset zoom animation #1

Closed yoshiweegee closed 1 year ago

yoshiweegee commented 1 year ago

On slower computers/browsers, the zoom CSS animation would be reset before the page switched. This changes it so that it waits until the page actually begins to unload and isn't visible before resetting.

This should be compatible with back/forward navigation caching (if any web browser can do that for YNOProject's pages).