Best way to make an image follow a circular path in JQuery?
问题 I have an image (red, below), that I want to make travel along a circular path. The red image should always end in the same spot as it started. Notes: The grey circular path is invisible. I am just highlighting the path it will follow. What is the best method/library to achieve this technique? 回答1: Do you really need a library, it's not that hard to do $(document).ready(function (e) { var startAngle = 0; var unit = 215; var animate = function () { var rad = startAngle * (Math.PI / 180); $('