Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have a background image, like a map, with a road. The road is not straight, it also has some curves on it.I want to do something similar with the attached link, but like I said, on a road that is not straight. I tried some existing scripts, like jQuery Scroll Path, but this is based on background rotation around the object that you want to scroll, and I don't need it this way. If you can give me some suggestions on how to make it happen, I will appreciate. Thanks!

share|improve this question

1 Answer

up vote 1 down vote accepted

Maybe this could be something for you

http://forum.jquery.com/topic/new-plugin-jquery-crspline-animates-elements-smoothly-along-arbitrary-length-sequences-of-waypoints-in-2d

there you set positions and the element will follow

share|improve this answer
Thanks for your quick answer Breezer, I've haven't saw this library until now. Seems interesting, and it might just do the trick! – Codrutz Codrutz Apr 18 at 8:22
@CodrutzCodrutz You're welcome – Breezer Apr 18 at 8:23
@CodrutzCodrutz Please mark the answer as accepted if it works. =) – Breezer Apr 19 at 9:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.