Changes 5/28/14
jQuery:
- I'm still trying to make elements shake. I almost have it, but I have this weird problem when trying to programatically animate an element.
- I'm using the code $(selector).animate({next_dir : sign + '=15px'}); to animate, where selector is something passed into the surrounding code, and next_dir and sign change depending on the number of iterations.
- This code does not work for some reason, and there is something wrong with next_dir. It's super weird because passing the function as $(selector).animate({"left" : sign + '=15px'}); works correctly but setting next_dir = "left" and passing $(selector).animate({next_dir : sign + '=15px'}); does not work, saying that there is an invalid property id.
No comments:
Post a Comment