Can anyone show me how to use CSS3 to do this?
I've been trying to figure out how to call CSS3 transitions via events and stopping transitions like jQuery's stop(true, false)
for months.
<div id="outer"></div>
<div id="inner"></div>
var under = true;
$("#outer").bind({
click : function() {
if(under){
$("#inner").stop(true, false).animate( {
left: 50
}, 500);
}
else{
$("#inner").stop(true, false).animate( {
left: -50
}, 500);
}
under = !under;
}
});