DEV Community

Discussion on: Vanilla JS FadeIn/Out

Collapse
 
krasimir1 profile image
Krasimir1

Hello! This didnt work for me quite well.
When i changed this if (!((val += .1) > 1)) { to this if (!((val += .1) >= 1)) { it started working well.