为了账号安全,请及时绑定邮箱和手机立即绑定

正在回答

代码语言

1 回答

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
@-webkit-keyframes around{
  0% {
    -webkit-transform: translateX(0);
  }
  25%{
    -webkit-transform: translateX(180px);
  }
  50%{
     -webkit-transform: translate(180px180px); 
  }
  75%{
    -webkit-transform:translate(0,180px);
  }
  100%{
    -webkit-transform: translateY(0);
  }
}
div {
  width200px;
  height200px;
  border1px solid red;
  margin20px auto;
}
div span {
  display: inline-block;
  width20px;
  height20px;
  background: orange;
  border-radius: 100%;
  -webkit-animation-name:around;
  -webkit-animation-duration: 10s;
  -webkit-animation-timing-function: ease;
  -webkit-animation-delay: 1s;
  -webkit-animation-iteration-count:infinite;
}

我是chrome  就以chrome为例了

CSS3 需要根据不同浏览器来使用不同前缀 达到兼容效果

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
十天精通CSS3
  • 参与学习       242891    人
  • 解答问题       2623    个

本课程为CSS3入门教程,深刻详解CSS3知识让网页穿上绚丽装备

进入课程

怎么没有反应

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号