Skip to content

infinite blink animation with "interpolate" function #3545

Closed Answered by mnlbox
mnlbox asked this question in Q&A
Discussion options

You must be logged in to vote

OK I tried this one and it worked:

	const opacity = interpolate(frame % 60, [0, 30, 60], [0, 1, 0]);

I don't know if it's a right way and official way of doing it or not. But it's working. 😄

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@musafiroon
Comment options

@JonnyBurger
Comment options

Answer selected by mnlbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants