animation-play-state属性怎么用


当前第2页 返回上一页

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

<!DOCTYPE html>

<html>

<head>

<style>

div

{

width:100px;

height:100px;

background:red;

position:relative;

animation:mymove 5s;

animation-play-state:running;

 

/* Safari and Chrome */

-webkit-animation:mymove 5s;

-webkit-animation-play-state:running;

}

div:hover{

animation-play-state:paused;

-webkit-animation-play-state:paused;

}

@keyframes mymove

{

from {left:0px;}

to {left:200px;}

}

 

@-webkit-keyframes mymove /* Safari and Chrome */

{

from {left:0px;}

to {left:200px;}

}

</style>

</head>

<body>

 

<div></div>

 

</body>

</html>

效果图:

1.gif

以上就是本篇文章的全部内容,希望能对大家的学习有所帮助。更多精彩内容大家可以关注php中文网相关教程栏目!!!

以上就是animation-play-state属性怎么用的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

css3怎么实现强制不换行

animation-play-state属性怎么用

css中display: inline-block的用法解析

html5如何绘制动画?(代码实例)

如何解决css3 media不起作用的问题

css3中媒体查询的语法组成是什么

css3中box-sizing属性的解析(附代码)

border-image-source属性怎么用

html5与css3的新交互特性

用html实现简单动画

更多相关阅读请进入《animation-play-state属性》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...