Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一张背景图片,比如一张地图,上面有一条路。这条路不是直的,它上面也有一些曲线。我想用附加的链接做类似的事情,但就像我说的,在一条不直的路上。我尝试了一些现有的脚本,例如 jQuery Scroll Path,但这是基于您要滚动的对象周围的背景旋转,我不需要这种方式。如果你能给我一些关于如何实现它的建议,我将不胜感激。谢谢!
也许这可能适合你
http://forum.jquery.com/topic/new-plugin-jquery-crspline-animates-elements-smoothly-along-arbitrary-length-sequences-of-waypoints-in-2d
你在那里设置位置,元素将跟随