Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.cellcontent').animate({
- left: '-=190'}, {
- easing: alert('start ani'),
- duration: 5000,
- complete: alert('end ani')});
- complete: function() { alert('end ani'); }
- alert('start ani');
- $('.cellcontent').animate({
- left: '-=190'
- },
- {
- easing: 'swing',
- duration: 5000,
- complete: function(){
- alert('end ani');
- }
- });
- $('.cellcontent').animate({
- left: '-=190'}, {
- easing: alert('start ani'),
- duration: 5000,
- complete: function() { alert('end ani') }
- });
- $('.cellcontent').animate({
- left: '-=190'}, {
- easing: alert('start ani')
- }, duration).promise().done(function () {
- alert('end animation');
- });
- var onComplete = function () {
- alert('end ani');
- };
- $('.cellcontent').animate({
- left: '-=190'}, {
- easing: 'slow',
- duration: 5000,
- complete: onComplete //<-- function is passed as a variable, not called directly
- });
- $('.cellcontent').animate({
- left: '-=190'}, {
- easing: 'slow',
- duration: 5000,
- complete: function () {
- alert('end ani');
- }
- });
- $( "#clickme" ).click(function() {
- $( "#book" ).animate({
- opacity: 0.25,
- left: "+=50",
- height: "toggle"
- }, 5000, function() {
- // Animation complete.
- });
- });
- $('.cellcontent').animate({
- left: '-=190',
- easing: 'slow',
- duration: 5000,
- function () {
- alert('end ani');
- }
- });
Add Comment
Please, Sign In to add comment