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.
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 !important
here.
Comments
Post a Comment