HoCo_
HoCo_

Reputation: 1372

How trigger an animation only when element is on a certain position of screen?

I'm using react-reveal, I would trigger animations only when element are on middle screen or other position. How do that? I'm new in css animation, I'm supposing I have to display the component only on specific position in screen with CSS then the magic will happen,

meanwhile, thanks for any hints

Upvotes: 0

Views: 147

Answers (1)

zainhassan
zainhassan

Reputation: 1780

You can use react-waypoint and set your own css animation or call a function

Upvotes: 1

Related Questions