[Javascript] animation algorithm

Peter Brunone peter at brunone.com
Mon Mar 12 13:40:36 CDT 2007


What do you have so far?  That's usually a good place to start.

Also, have you tried the usual searches on sites like dynamicdrive.com ?

Peter

From: "Anthony Ettinger" anthony at chovy.com

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
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070312/e34e36f0/attachment.htm>


More information about the Javascript mailing list