码迷,mamicode.com
首页 > Web开发 > 详细

css 3 波浪特效

时间:2018-04-09 13:14:00      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:分享图片   line   alt   nbsp   bottom   附件   images   div   url   

  /* Water  */
@keyframes wave-animation-1{0%{background-position:0 top}100%{background-position:600px top}}@keyframes wave-animation-2{0%{background-position:0 top}100%{background-position:600px top}}

.water {
  position: absolute;
  left: 0;
  bottom: 0px;
  height: 30px;
  width: 100%;
  z-index: 1;
}
.water-c {
  position: relative;
}
.water-1, .water-2 {
  position: absolute;
  width: 100%;
  height: 30px;
}
.water-1 {
  background: url(../addons/ewei_shopv2/static/images/water-1.svg) repeat-x;
  background-size: 600px;
  -webkit-animation: wave-animation-1 3.5s infinite linear;
  animation: wave-animation-1 3.5s infinite linear;
}
.water-2 {
  top: 0;
  background: url(../addons/ewei_shopv2/static/images/water-2.svg) repeat-x;
  background-size: 600px;
  -webkit-animation: wave-animation-2 6s infinite linear;
  animation: wave-animation-2 6s infinite linear;
}

<div class="water"><div class="water-c"><div class="water-1"></div><div class="water-2"></div></div></div>

 svg附件:https://files.cnblogs.com/files/jimz/water.zip

技术分享图片

 

css 3 波浪特效

标签:分享图片   line   alt   nbsp   bottom   附件   images   div   url   

原文地址:https://www.cnblogs.com/jimz/p/8758924.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!