Alban's public fiddles
-
5sut3pog
jQuery 1.6.3, HTML, CSS, JavaScript
-
fs4L3hqc
jQuery 2.1.0, HTML, CSS, JavaScript
-
8u76Lroe
No-Library (pure JS), HTML, CSS, JavaScript
-
n8LL636u
jQuery 2.1.0, HTML, CSS, JavaScript
-
6a3oob9w
jQuery 2.1.0, HTML, CSS, JavaScript
-
Width toggle on hover
When hovering .wrapper, it's child element .contents should animate from 0px to it's natural width. Then when the mouse is removed from .wrapper, it should animate back down to 0px. The .wrapper element should only be as wide as it needs to be, so .wrapper should grow in width and shrink in width as .contents does. There should be no set width for .contents.