...

View Full Version : Swing object (pendulum effect)



alioso_oopa
09-28-2010, 06:40 PM
How difficult is it to achieve such animation with jquery (or any other library for that matter). I have just tried many different ways, but none offers me a way to swing an div or img like a pendulum. (static top, swinging bottom)

Any advise or solution?

Thanks for reading

DrDOS
09-29-2010, 12:57 AM
Here are the tools you will need. I never thought of doing it, interesting project though. Imminently doable.

http://www.javascripter.net/faq/mathfunc.htm

alioso_oopa
09-29-2010, 07:09 PM
Thanks! good place to start. i will work on it and post a solution when I manage to make it work.

alioso_oopa
09-29-2010, 07:11 PM
actually somebody posted this in another forum. Interesting. Just have to adapt it and apply it to an image.

http://rosettacode.org/wiki/Animate_a_pendulum#JavaScript_.2B_.3Ccanvas.3E

alioso_oopa
10-06-2010, 12:42 AM
I just have a hard time applying the function to an image of my choice. My programming skills are pretty poor I am afraid..

Anybody got an idea that could lead me towards a solution?

many thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum