I’m using jQuery to move some elements on screen, however the animate function is not working (or my CSS definition is hindering it, more like..).
For instance, I believe this animate element id foobar to a given position..
$('#foobar').animate({ top: '0px', left: '200px' });
I’ve a jsfiddle example here: have a play
As far as I am aware, I should be able to place absolute positioned elements (class menuButton in the example) so long as they are inside a relative positioned div (ScreenDesign in the example). However I cannot get this to work.
Thanks 🙂
Your jsFiddle isn’t working because jQuery isn’t included (only MooTools, a different library, is included by default).
To include jQuery, choose it from the “framework” tab:
Here’s a fixed version: little link.