顏色只要在BACKGROUND-COLOR里面設(shè)置即可
顏色只要在BACKGROUND-COLOR里面設(shè)置即可
顏色只要在BACKGROUND-COLOR里面設(shè)置即可
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}}