div+css实现炫酷线条标题背景动画效果代码
代码语言:html
所属分类:动画
代码描述:div+css实现炫酷线条标题背景动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @-webkit-keyframes layer1 { 0% { opacity: 0; } 10% { opacity: 1; } 20%, 50% { opacity: 1; transform: translateX(0); } 70% { opacity: 0; transform: translateX(322px); } } @keyframes layer1 { 0% { opacity: 0; } 10% { opacity: 1; } 20%, 50% { opacity: 1; transform: translateX(0); } 70% { opacity: 0; transform: translateX(322px); } } @-webkit-keyframes layer2 { 0% { width: 0; } 20%, 65% { width: 322px; } 90% { width: 0; } } @keyframes layer2 { 0% { width: 0; } 20%, 65% { width: 322px; } 90% { width: 0; } } @-webkit-keyframes layer3 { 0%, 5%, 20% { width: 0; transform: skew(-21deg) translateX(50px); } 40%, 58% { transform: skew(-21deg) translateX(0); width: 322px; } 80% { width: 0; } } @keyframes layer3 { 0%, 5%, 20% { width: 0; transform: skew(-21deg) translateX(50px); } 40%, 58% { transform: skew(-21deg) translateX(0); width: 322px; } 80% { width: 0; } } @-webkit-keyframes layer4 { 0%, 10% { width: 0; } 30%, 45% { width: 296px; } 65% { width: 0; } } @keyframes layer4 { 0%, 10% { width: 0; } 30%, 45% { width: 296px; } 65% { width: 0; } } @-webkit-keyframes layer5 { 0%, 12% { height: 0; } 30%, 54% { height: 75px; } 70% { height: 0; } } @keyframes layer5 { 0%, 12% { height: 0; } 30%, 54% { height: 75px; } 70% { height: 0; } } @-webkit-keyframes layer6 { 0% { opacity: 0; } 10% { opacity: 1; } 20%, 50% { opacity: 1; transform: translateX(0); } 70% { opacity: 0; transform: translateX(-322px); } } @keyframes layer6 { 0% { opacity: 0; } 10% { opacity: 1; } 20%, 50% { opacity: 1; transform: translateX(0); } 70% { opacity: 0; transform: translateX(-322px); } } .layer { position: absolute; background: #de217b; top: 0; transform: skew(-21deg); } .layer:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0