+ 2

Why is the transition stopping?

I'm using DOM and CSS transition to make a rainfall effect, only the droplets are disappearing halfway. https://code.sololearn.com/WZl6y6ZhZaZU/?ref=app

1st Apr 2020, 4:59 PM
Nor'wester 🌪️ 🇧🇩 (INACTIVE)
Nor'wester 🌪️ 🇧🇩 (INACTIVE) - avatar
2 Respostas
0
Because every time a new drop spawns, the transition will reset
1st Apr 2020, 5:18 PM
Simone Crema 🇮🇹
Simone Crema 🇮🇹 - avatar
+ 1
https://code.sololearn.com/Wpwp68mgsCDZ/?ref=app I just changed the setInterval.Its stop half way because your cas time is 2s and the others is 5millisecond.
1st Apr 2020, 5:06 PM
Anonymous
Anonymous - avatar