设置沿路径移动的三个 <img> 元素的旋转:
#fish1 {
offset-rotate: auto;
}
#fish2 {
offset-rotate: auto 90deg;
}
#fish3 {
offset-rotate: 90deg;
}
亲自试一试 »
下面有更多 "亲自试一试" 示例。
这个offset-rotate
属性设置沿路径移动的动画元素的旋转。
表中的数字指定完全支持该属性的第一个浏览器版本。
Property | |||||
---|---|---|---|---|---|
offset-rotate | 56.0 | 79.0 | 72.0 | Not supported | 43.0 |
offset-rotate: auto|
value|initial|inherit;
Value | Description |
---|---|
auto | The element is facing the direction it moving along a path. This is default. |
<angle> | Specifies how much to rotate an element with an constant angle. |
auto <angle> | With both auto and <angle> given, the angle is added to the default rotation, in the clockwise direction. |
reverse | The element is rotated in the opposite direction of the default rotation. |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
HTML SVG 教程:SVG路径
CSS教程:CSS 动画
CSS偏移属性:CSS 偏移属性
CSS 偏移锚点属性:CSS Offset-anchor 属性
CSS 偏移距离属性:CSS 偏移距离属性
CSS 偏移路径属性:CSS 偏移路径属性
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!