Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.43 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to fix this animation using JQuery?
  2. var readMoreInfoTop = 0;
  3. var readMoreInfoLeft = 0;
  4.        
  5. readMoreInfoTop = readMoreOffset.top + 10;
  6. readMoreInfoLeft = readMoreOffset.left + 10;
  7.        
  8. //doc ready...
  9. function() {
  10.  
  11.   var leftPosition;
  12.  
  13.   $('.button').click(function() {
  14.     //animate popup to open
  15.     leftPosition = $(this).offset.left;
  16.   });
  17.  
  18.   $('#close').click(function() {
  19.     //animate popup to close using leftPosition
  20.   });
  21. }();