CSS3如何实现页面加载效果


当前第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>

<meta charset="UTF-8">

<title>Document</title>

<style>

.load {

  margin:300px auto;

  width: 150px;

  text-align: center;

}

.load div{

  width: 30px;

  height: 30px;

  background-color:rgb(118,224,250);

  border-radius: 100%;

  display: inline-block;

  -webkit-animation: load 1.4s infinite ease-in-out;

  -webkit-animation-fill-mode: both;

 

}

.load .circle1 {

  -webkit-animation-delay: -0.32s;

}

.load .circle2 {

  -webkit-animation-delay: -0.16s;

}

@-webkit-keyframes load {

  0%, 80%, 100% { -webkit-transform: scale(0.0) }

  40% { -webkit-transform: scale(1.0) }

}

</style>

</head>

<body>

<div class="load">

  <div class="circle1"></div>

  <div class="circle2"></div>

  <div class="circle3"></div>

</body>

</html>

【推荐课程:CSS3教程

效果图

未标题-1.jpg

动态效果图

GIF.gif

总结:以上就是本篇文章的全部内容了,通过这篇文章的内容希望大家对CSS3动画有一定的了解,可以做出自己喜欢的页面加载样式。

以上就是CSS3如何实现页面加载效果的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

css3如何实现页面加载效果

css中的animation是什么

animation属性怎么用?animation属性详解

css3中animation动画属性如何使用

css3动画属性有哪些

css怎么让图案上下浮动

css3如何实现雪花飘落的效果

更多相关阅读请进入《animation》频道 >>




打赏

取消

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

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

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

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

评论

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