Guest User

Untitled

a guest
Feb 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.57 KB | None | 0 0
  1.     if ($(this).is(":last-child")) {
  2.         var pos = $(this).offset().top;
  3.         var location;
  4.         if ($(this).offset().left == 0) { location = "right" } else { location = "left" }
  5.         $("#myTools").animate({ top: "+=" + getFullHeight() }, 1000, 'swing', function () {
  6.             $(this).css({ "float": location, location: "0px" }, function () {
  7.             });
  8.         });
  9.         $("#myTools").animate({ top: "-=" + getFullHeight() }, 1000, 'swing');
  10.         //$(obj).parent().animate({ top: ($(document).height() - $(this).height()) }, 500, 'swing');
  11.     }
Add Comment
Please, Sign In to add comment