Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

moving div around a circle using animate

http://codepen.io/pauldd91/pen/LhtiD

From the codepen, you can see the layout of the track and the car. I want to simulate the movement of a car around the circle(track) using jquery. How do I go about it?

3 Answers

Try this code, only with css:

         http://codepen.io/jhernandez/pen/CkEml

maybe help you!

Hi Jorge, I will try it. but your codepen doesn't seem to have any result

hi Jorge, much appreciated. I will implement the transforms using jquery to give it a controlled-motion ability. will let you know when I'm done with my Donut Racer. Thanks again!

Ok, perfect!