[Javascript] animation algorithm

Anthony Ettinger anthony at chovy.com
Mon Mar 12 13:27:23 CDT 2007


I have a pretty simple idea to pan an element within it's parent.

I'm having trouble coming up with an algorithm that would ease in/out
of the far left or far right position, relative to it's parent.

I want a basic bell curve, but am having a heck of a time getting my
calculations correct.

the variables I have to work with are positions of the mouse, the
static container element and it's width, and the position of the child
element that will be moved and it's width.

Please help.

-- 
Anthony Ettinger
Ph: 408-656-2473
http://chovy.dyndns.org/resume.html
http://utuxia.com/consulting



More information about the Javascript mailing list