I want to do a scroll event animation, here is the steps:
- A card element(div&img, let's named it CARD) in the middle of screen;
- Do scroll down;
- The CARD will rotate & scale;
- Do scroll up;
- The CARD will rotate & scale back to step 1 state;
So generally, the CARD will rotate&scale during the scroll up/down event, now the question is how to deal with the relationship between the scroll event and CARD state in every moment? The scroll up/down will do the "reverse like" state, scoll speed also impact the CARD state.
PS: this is the demo animation site I want to follow.
https://stackoverflow.com/questions/65526570/how-to-handle-the-scroll-event-with-animation-in-each-monents-state January 01, 2021 at 08:42AM
没有评论:
发表评论