←back to thread

AnimeJs v4 Is Here

(animejs.com)
973 points adrianvoica | 2 comments | | HN request time: 0.501s | source
Show context
XCSme ◴[] No.43574144[source]
The landing page is amazing!

The only issue I found with it was when checking the responsive layout example, I tried to resize my browser window and then the scroll was reset to top :(

replies(1): >>43574230 #
1. bleuarff ◴[] No.43574230[source]
Handling resize is a different beast than being responsive. Working for every viewport dimension under the sun is not the same thing as gracefully handling an animation while the viewport size changes - the latter is much more challenging.
replies(1): >>43575097 #
2. XCSme ◴[] No.43575097[source]
I agree, I was not even expecting it to handle the resize well. I just thought the landing page wanted me to resize my window to test responsiveness (before I noticed that the animation itself changes the content area size).

That being said, when resizing a window, the scrollbar should not reset/jump to top. At the very least, it should revert to what it was when going back to full size.