animate function Jquery

I am trying to write a program to create a carousel of images.
I understand the animate function, but when looking up an example I saw one person write the code in the way presented below. Could somebody explain why this person added a '-=' in the parameters portion?
1
2
 $allImages.animate( 
      { 'left': '-=' + WIDTH + 'px' },
Last edited on
Hey infinitesimalGuy,

If the heading and the code do not tell you what the question is then do not ask what programming language it is. Like you have said about others you are just wasting out time.

neverStopLearning,

I do nor know that much about jquery, but remember this is a c++ forum. It may be hard to get an answer here.

Andy
Last edited on
Topic archived. No new replies allowed.