Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From
- $('#slot1').animate({
- top: "-=50"
- }, {
- duration: 750,
- specialEasing: {
- top: 'easeInQuad'
- },
- complete: function () {
- $('#slot1').css('top', 0);
- }
- });
- $('#slot2').animate({
- top: "-=50"
- }, {
- duration: 750,
- specialEasing: {
- top: 'easeInQuad'
- },
- complete: function () {
- $('#slot2').css('top', 0);
- }
- });
- $('#slot3').animate({
- top: "-=50"
- }, {
- duration: 750,
- specialEasing: {
- top: 'easeInQuad'
- },
- complete: function () {
- $('#slot3').css('top', 0);
- }
- });
- To
- $('#slot1, #slot2, #slot3').animate({
- top: "-=50"
- }, {
- duration: 750,
- specialEasing: {
- top: 'easeInQuad'
- },
- complete: function(){
- $(this).css('top', 0);
- }
- });
Add Comment
Please, Sign In to add comment