|
|
|
|
|
by harrisonpowers
4678 days ago
|
|
Spent some time yesterday converting jQuery fadeIn/fadeOuts to CSS3 animations and ran into an issue. Changing the display style (display:none; to display:block;) disables CSS animations and transitions. There are workarounds - setting height to 0 and switching to auto, then animating the opacity - or moving the element off the screen. Took me a while to figure out why my simple animations weren't working... I had gotten used to display:none; not sure how I feel about height:0; |
|
https://github.com/fijimunkii/CSS3.fadeIn.fadeOut.js