View Single Post
05-30-2012, 01:26 PM
#3
Ant is offline Ant
Status: Member
Join date: Apr 2005
Location: England
Expertise:
Software:
 
Posts: 209
iTrader: 5 / 100%
 

Ant is on a distinguished road

  Old

You could use this kind of thing to send the window to a location upon finishing an animation.

The example here animates #container_to_animate when the element with id #clickme has been clicked.

Code:
$('#clickme').click(function() {

  $('#container_to_animate').animate({
    opacity: 0.25,
    left: '+=50',
    height: 'toggle'
  }, 300, function() {
    window.location = 'http://google.com';
  });

});