I'm trying to animate every one div-1500px when grabbing the .btn-arrow button on current position From # content
var $ offset = $ ('# content') Offset.left () - 1500; $ ('.btn-aro'). Click (function () {$ ('# content'). Anonymate ({margin left: $ offset}); return false;}); & Lt; Div style = "margin-left: 0 pixel; width: 99 99 pixels;" Id = "content" & gt; Content & lt; / Div & gt; It is not working at present, any thoughts anyone?
You need the right sytax:
{marginLeft: - = 1500 '} ( quotation marks and - = currently animate relative / P> You do not need to use offset.
But I think you need it:
{left: '- = 1500 '} In this case
Comments
Post a Comment