Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

jquery animation, creating constantly looping action

Avatar of lexusgs430
lexusgs430 asked on
JavaScriptjQuery
2 Comments1 Solution465 ViewsLast Modified:
Hi,

Working on designing a site. Had a pretty cool idea. Id like to use jquery to adjust the background position style property of a div (moving it in a constant upward motion, no left-right movement), at a slow but smooth looking pace. Basically Id like for the background position of the background-image tag (which will be repeating), to move say .1 pixel per second (if its possible to do at that interval).

Id try writing this myself but Im terrible with anything other than jquery selectors and basic operations, and I figure that someone smarter than me could likely figure out the script with ease. So anyways, if you could help, it would be appreciated greatly!

(p.s., the dimensions of the background-image im attempting to animate are 1100 width x 500 high, and once again im trying to make it move upwards in a loop, so that when its moved to -1, the first pixel of the repeated image moves into the space from the bottom.)


^
^
^
^

Like that, in case I just overcomplicated my explanation :)
ASKER CERTIFIED SOLUTION
Avatar of David S.
David S.Flag of United States of America imageConsultant & Challenge Subduer
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers