Y
Hacker News
new
|
ask
|
show
|
jobs
by
plusminusplus
1242 days ago
>
You could use a bit of JavaScript with setTimeout to get rid of the modal at the right time
This always felt hacky to me, "animating" visibility instead is a great idea. Thanks for sharing!
1 comments
CGamesPlay
1242 days ago
There's also a way to do it on exactly the right frame:
https://developer.mozilla.org/en-US/docs/Web/API/Element/tra...
link
beebeepka
1242 days ago
That's been a thing for almost a decade now. I don't do much CSS anymore but I think not enough people have been using it
link
M4v3R
1242 days ago
Thanks for mentioning this, I never knew you could do this, that would make my hacky CSS+JS animations a lot less hacky :D.
link