Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Sep 2010
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Swing object (pendulum effect)

    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

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    1,903
    Thanks
    15
    Thanked 226 Times in 226 Posts
    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

  • Users who have thanked DrDOS for this post:

    alioso_oopa (09-29-2010)

  • #3
    New to the CF scene
    Join Date
    Sep 2010
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks! good place to start. i will work on it and post a solution when I manage to make it work.

  • #4
    New to the CF scene
    Join Date
    Sep 2010
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    actually somebody posted this in another forum. Interesting. Just have to adapt it and apply it to an image.

    http://rosettacode.org/wiki/Animate_...B_.3Ccanvas.3E

  • #5
    New to the CF scene
    Join Date
    Sep 2010
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Can't figure it out

    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!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •