0

I need to animate this animation during exact time. How to easing this animation.

$( "#slice1" ).click(function() {
  $("#post1").toggleClass("post"));
});
CRABOLO
  • 8,605
  • 39
  • 41
  • 68

1 Answers1

0

If you are talking about jquery UI you can use a second optional parameter to set the duration:

$(function() {
    $( "#button" ).click(function() {
      $( "#effect" ).toggleClass( "newClass", 1000 );
      return false;
    });
  });

DEMO

Related question here

Community
  • 1
  • 1
daniel__
  • 11,633
  • 15
  • 64
  • 91