Created
September 15, 2010 18:44
-
-
Save bebraw/581218 to your computer and use it in GitHub Desktop.
Thanks! That makes sense.
I guess another nice solution would be to use a generator. Interestingly JS 1.7 provides support for them (https://developer.mozilla.org/en/New_in_JavaScript_1.7).
I settled for a generator based implementation. Btw the code works great in Chrome now. :)
Excellent! I see you're having fun 8)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$('content').morph({left: ($('content').getStyle('left').toInt() < 0 ? 0 : -100) + 'px'});