0
Question is Not clear to me... If you mean if condition to make false when true you can use not(!) opearor.. if( !(condition))
28th Nov 2020, 8:14 PM
Jayakrishna 🇼🇳
0
Where you start your animation that can be assigned to a variable. And leter this animation can be canceled such as: var reqaf = requestAnimationFrame(animate); // other code ..... if(isInView(item)) cancelAnimationFrame(reqaf); Here is a live example for it: https://code.sololearn.com/WJqv5tPfKuso/?ref=app
28th Nov 2020, 9:14 PM
JaScript
JaScript - avatar