Simple CSS transition does not execute -


demo

<a href="#">hover</a> <p>text here</p> 

i want <p> fade in , slide in when <a> hovered. problem is, css in demo, <p> "pops" in rather animating.

the transition shorthand doesn’t support multiple properties in same place:

transition: max-height .5s ease, opacity .5s ease; 

you need overflow: hidden make it’s sliding. updated demo


Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -