diff --git a/README.md b/README.md index 5e08ff6..deaeb2c 100644 --- a/README.md +++ b/README.md @@ -84,11 +84,13 @@ $("#box").transition({ opacity: 0.1, scale: 0.3 }, function() {..}); $("#box").transition({ opacity: 0.1, scale: 0.3 }, 500, 'in', function() {..}); // everything ``` -You can also pass *duration* and *easing* and *complete* as values in `options`, just like in `$.fn.animate()`. +You can also pass *duration* and *easing* and *complete* as values in a second parameter, just like in `$.fn.animate()`. ``` javascript $("#box").transition({ - opacity: 0.1, scale: 0.3, + opacity: 0.1, + scale: 0.3, +}, { duration: 500, easing: 'in', complete: function() { /* ... */ } diff --git a/test/index.html b/test/index.html index 7a847a8..416b781 100644 --- a/test/index.html +++ b/test/index.html @@ -138,9 +138,13 @@

jQuery transit tests

}); test('as "complete"', function($box) { - $box.transition({ - rotate: 45, - complete: function() { $box.html('OK'); } + $box.transition( + { + rotate: 45 + }, + { + complete: function() { $box.html('OK'); + } }); });