代码介绍
这款LOADING页面来自17素材网,主要采用的CSS+CVG 效果还可以 喜欢的可以给自己网站整上 特炫酷 话不多说上演示 是动态的 我截的图
演示图
代码如下
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/> <!--这行适用于Typecho的ShortLinks 插件,如果无用可以删除--> <meta http-equiv="refresh" content="{{delay}};url='{{url}}';"> <title>腾飞博客 - 您将要访问的网页来源未知。</title> <style> /* Main styles */ @import url(https://fonts.googleapis.com/css?family=Open+Sans:800); .text { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 70 330; stroke-dashoffset: 0; -webkit-animation: stroke 6s infinite linear; animation: stroke 6s infinite linear; } .text:nth-child(5n + 1) { stroke: #F2385A; -webkit-animation-delay: -1.2s; animation-delay: -1.2s; } .text:nth-child(5n + 2) { stroke: #F5A503; -webkit-animation-delay: -2.4s; animation-delay: -2.4s; } .text:nth-child(5n + 3) { stroke: #E9F1DF; -webkit-animation-delay: -3.6s; animation-delay: -3.6s; } .text:nth-child(5n + 4) { stroke: #56D9CD; -webkit-animation-delay: -4.8s; animation-delay: -4.8s; } .text:nth-child(5n + 5) { stroke: #3AA1BF; -webkit-animation-delay: -6s; animation-delay: -6s; } @-webkit-keyframes stroke { 100% { stroke-dashoffset: -400; } } @keyframes stroke { 100% { stroke-dashoffset: -400; } } /* Other styles */ html, body { height: 100%; } body { background: #111; background-size: .2em 50%; font: 5em/1 Open Sans, Impact; text-transform: uppercase; margin: 0; } svg { position: absolute; width: 100%; height: 100%; } </style> </head> <body> <svg viewBox="0 0 600 300"> <!-- Symbol--> <symbol id="s-text"> <text text-anchor="middle" x="50%" y="50%" dy=".35em">Loading</text> </symbol> <!-- Duplicate symbols--> <use class="text" xlink:href="#s-text"></use> <use class="text" xlink:href="#s-text"></use> <use class="text" xlink:href="#s-text"></use> <use class="text" xlink:href="#s-text"></use> <use class="text" xlink:href="#s-text"></use> </svg> </html>
还没有评论,来说两句吧...