CSS3 Translate across an Arc

前端 未结 3 1285
囚心锁ツ
囚心锁ツ 2020-12-13 17:52

Is it at all possible with current CSS3 to translate an object (specifically a DIV) along an arc or curve? Here\'s an image to help illustrate.

3条回答
  •  我在风中等你
    2020-12-13 18:27

    An alternative to moving the transform origin, is to use a double nested element where an x-transform is applied to the outer container, and a y-transform with an appropriate easing curve is applied to the inner container.

提交回复
热议问题