Skip to content

Commit

Permalink
Animate test, close #28
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Aug 29, 2012
1 parent 34f1c67 commit cf3ea63
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions dom/animate/animate.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,13 @@
</script>
<script type='text/javascript' id="demo-source">
steal('jquery/dom/animate').then(function(){
var old = jQuery.fx.prototype.custom;
jQuery.fx.prototype.custom = function( from, to, unit ) {
console.log(arguments, this);
old.apply(this, arguments);
}
$("#go").click(function() {
$('#block').animate({
width: "70%",
opacity: 0.4,
marginLeft: "0.6in",
fontSize: "3em",
borderWidth: "10px"
}, 1500);
}, 1500, function() {
console.log('Done')
});
});
});
</script>
Expand Down

0 comments on commit cf3ea63

Please sign in to comment.