Can Modernizr and jQuery be combined to create a transition effect similar to CSS3 if it's not supported? My current approach looks like this...
<div class="hoverable">
<p>This div changes both width and height on hover</p>
</div>
The CSS is
.hoverable {
height: 100px;
width: 2000px;
transition: height .5s, width .5s;
}
.hoverable:hover {
height: 200px;
width: 100px;
}
Right now, I'm using Modernizr to set the div in the hover state by default if CSS3 transitions aren't supported. Is there a way to utilize Modernizr to trigger jQuery animation in case CSS3 isn't supported? If not jQuery, I'm open to using custom animation, but unsure of how to proceed with either option.