Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. var newPosition = parseInt($('#pages').css('margin-left'))-768 + 'px';
  2. console.log(newPosition);
  3. $('#pages').css({'margin-left' : newPosition });
  4. console.log($('#pages').css('margin-left'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement