京东商城动画

http://js.jirengu.com/zukaxonuze/1/edit

<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>

<body>
  <span>京</span>
  <span>东</span>
  <span>商</span>
  <span>城</span>

</body>

</html>
span {
  display: inline-block;
/* loading 动画名称
4s animation-duration 属性定义动画完成一个周期所需要的时间,以秒或毫秒计
infinite 循环次数,无限
linear线性播放
*/
  animation: loading 4s infinite linear;
}
span:nth-child(1){
  animation-delay: 0s;
}
span:nth-child(2){
  animation-delay: 1s;
}
span:nth-child(3){
  animation-delay: 2s;
}
span:nth-child(4){
  animation-delay: 3s;
}
/*
@keyframes 后面跟着一个名字
0 12.5% 25% 100% 时间
transform: scale(2) 放大倍数
*/
@keyframes loading {
  0%{
    transform: scale(1);
  }
  12.5% {
    transform: scale(2);
  }
  12.5%, 25%{
    transform: scale(2);
  }
  25%, 100% {
    transform: scale(1);
  }
}
image.png
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 数组方法里push、pop、shift、unshift、join、split分别是什么作用。(*) 1. push...
    菲龍探雲阅读 2,405评论 0 2
  • 北京2018年4月1日上午,NBA常规赛勇士客战国王的比赛中,发生了令人痛心不已的一幕。比赛进行到第三节还有41...
    Curry_宇阅读 4,996评论 1 1
  • 为什么你的培训计划总无效 通常是因为在培训体系运行过程中,最重要的培训需求调研分析环节出了问题。 需求,是供给的唯...
    0e1bfbfd64e4阅读 3,251评论 0 1
  • 对于我来说 给好吃的我吃的人 简直就是生命之光
    q2017阅读 949评论 0 1