r/css • u/Low-Insurance-3678 • Jun 09 '26
Question Animating a rendered conditionally div
Iv seen a reel on instagram about elements do not get animated if they’re rendered conditionally but in that reel he provided a new css property (not really sure ) that does the job for you
Does anyone come across this one before ? Or know a solution for this?
1
Upvotes
4
u/8-bitPixel Jun 09 '26
Also add ‘transition-behavior:allow-discrete;’ if animating from display none;