百恒网络
CSS3实现条纹斜纹效果
  • 百恒服务
  • APP开发
  • 网页案例
  • 网页知识
  • 关于我们
  • 联系我们
  • CSS3实现条纹斜纹效果

    2016-09-23 14:28:28 6091
    颜色只要在BACKGROUND-COLOR里面设置即可
    颜色只要在BACKGROUND-COLOR里面设置即可
    颜色只要在BACKGROUND-COLOR里面设置即可
    background:#06c2b7;
    background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    -webkit-background-size:20px 20px;background-size:20px 20px;
    -webkit-animation:progress-bar-stripes 5s linear infinite;
    -o-animation:progress-bar-stripes 5s linear infinite;
    animation:progress-bar-stripes 5s linear infinite;
    
    动画样式CSS
    @-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}
    @-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}
    @keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}
    
    展开分享
    服务
    案例
    首页
    动态
    联系
    咨询