/    Sign up×
Community /Pin to ProfileBookmark

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

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@alioso_oopaauthorSep 29.2010 — Thanks a lot. This is a good place to start. Now I have to function, and I need to apply it to the graphic that I have, instead of the one drawn by javascript.
Copy linkTweet thisAlerts:
@alioso_oopaauthorOct 05.2010 — 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!
Copy linkTweet thisAlerts:
@FangOct 06.2010 — You can only use a drawn image or a series of images. A single image will not work.
×

Success!

Help @alioso_oopa spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...