怎样设计幻灯片的设计主题为波形样式(怎样将幻灯片的主题设为波形)
1019
2022-05-30
参考 MDN开发文档 https://developer.mozilla.org/en-US/docs/Web/SVG/SVG_animation_with_SMIL
SMIL
As of Chrome 45.0, SMIL animations are deprecated in favor of CSS animations and Web animations.
Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) introduced support for animating SVG using Synchronized Multimedia Integration Language (SMIL). SMIL allows you to:
animate the numeric attributes of an element (x, y, …)
animate transform attributes (translation or rotation)
animate color attributes
follow a motion path
This is done adding an SVG element like
自Chrome 45.0起,SMIL动画就被废弃了,取而代之的是CSS动画和Web动画。
Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) 介绍使用同步多媒体集成语言(SMIL)支持SVG动画。SMIL允许:
将元素的数值属性(x, y, …)作为动画
将变换属性(translation,rotation)作为动画
将颜色属性作为动画
按照运动轨迹移动
通过添加SVG动画元素,比如
animate
The following example animates the cx attribute of a circle. To do so, we add an
attributeName
The name of the attribute to animate.
from
The initial value of the attribute.
to
The final value.
dur
The duration of the animation (for example, write ‘5s’ for 5 seconds).
If you want to animate more attributes inside the same element, just add more
下面的例子将圆的cx属性作为动画。为了实现这种效果,我们添加了一个
attributeName
需要动画的属性名称
from
属性的初始值
to
终止值
dur
动画的时间
如果你想要让该元素的更多属性具有动画效果,只要添加更多的
1
2
3
4
5
6
animateTransform
The
1
2
3
4
5
6
7
8
animateMotion
The
Example 1: Linear motion
In this example, a blue circle bounces between the left and right edges of a black box, over and over again, indefinitely. The animation here is handled by the
在这个例子中,一个蓝色的圆在黑盒的左右边缘之间来回的反弹,无限地重复着同样的动作。该动画是由
1
2
3
4
5
6
Example 2: Curved motion
Same example as before with a curved path and following the direction of the path.
和上面差不多的例子,只不过现在是沿着曲线和路径方向运动。
1
2
3
4
5
6
SVG
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。