-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Animation doesn't conform to common sense #273
Comments
It seems the video link isn't working. Could you please paste the video here or provide another link? |
https://drive.google.com/file/d/14DjYW0RBNS99UBXCn_L0CU3I083yWiUT/view?usp=sharing The video showcases the elegant transition effect when clicking on the first article, as well as the transition effect when clicking on the third article |
@xiyuvi I think this happens because the importance of background images changes between the homepage and blog content pages. |
This is the expected behavior. What actually happens when navigating between homepage and other pages is:
That's why you see two animations. I agree that this doesn't look ideal, and I did try to make the page scroll to the top immediately when the link is clicked, but that resulted in weird jumps. I guess this might be because Swup starts another scroll after replacing the page content, while the first scroll hasn't finished yet. I haven't figured out a solution for it. |
@saicaca Thank you for your informative presentation on the theme of animation. I understand that the reason why animations are not aesthetically pleasing is due to the simultaneous execution of highly animated images and scroll animations. I tried to change the animation of height changes to asynchronous execution, and manually scroll the animation after the image height changes.
|
I think the height of the image is necessary, but animations that change the height of the image are unnecessary. As long as we can find a way to change the height without changing the scrolls, we should be able to solve the problem |
Prerequisite: When the mouse scroll wheel slides the page down a certain height
Operation: Click on the third article
Effect: The entire page slides up first and then down
And when the top of the page is 0 and you click on the article, the entire page only has one animation, which is quite beautiful, so I think the above may be a bug that does not meet the author's expectations
If the above animation meets your expectations, please end this issue directly
https://dai.ly/k1zYbTpEUzIUwxCcfYe
The text was updated successfully, but these errors were encountered: