css - CSS3 transition max-height : 0 to max-height : 99999px -


hello

i trying make according tabs pure css3 , know transition doesn't work height : 0 height : auto im trying max-height : 0 max-height : 99999px . dont know why isn't work.

jsfiddle

try one.

you have target property. if use word all, target properties. read on mdn.

div {     transition: <property> <duration> <timing-function> <delay>; } 

example :

.ac-container article {   -webkit-transition: 5s all;   -moz-transition: 5s  all;   -o-transition: 5s all;   -ms-transition: 5s all;   transition: 5s all; } 

another error, forget ; @ :

.ac-container input:checked ~ article{     max-height:999999px !important /* ; */ } 

last thing,

if use big value (like 999999px) , small transition (like 0.5s), transition work not see it.

by way, dont need keyword !importanthere.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -