基本信息
源码名称:HTML5 SVG+CSS3霓虹灯文字边框动画特效
源码大小:2.12KB
文件格式:.html
开发语言:CSS
更新时间:2019-04-02
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>使用SVG   CSS实现动态霓虹灯文字效果</title>
	<meta name="keywords" content="ixinba.cn" />

<style>
#svgBox{[/b]        width:100%;
        margin:100px auto;
}
.text{
        font-size: 64px;
        font-weight: bold;
        text-transform: uppercase;
        fill: none;
        stroke-width: 2px;
        stroke-dasharray: 90 310;
        animation: stroke 6s infinite linear;
}
.text-1{
        stroke: #3498db;
        text-shadow: 0 0 5px #3498db;
        animation-delay: -1.5s;
}
.text-2{
        stroke: #f39c12;
        text-shadow: 0 0 5px #f39c12;
        animation-delay: -3s;
}
.text-3{
        stroke: #e74c3c;
        text-shadow: 0 0 5px #e74c3c;
        animation-delay: -4.5s;
}
.text-4{
        stroke: #9b59b6;
        text-shadow: 0 0 5px #9b59b6;
        animation-delay: -6s;
}
  
@keyframes stroke {
        100% {
                stroke-dashoffset: -400;
        }
}
.svgText{
        width:600px;
        margin:0 auto;
}
.svgText h3{
        font-size:18px;
        color:#333;
        line-height:2;
}
.svgText p{
        font-size:16px;
        color:#888;
        line-height:2;
}
.svgText p a,.svgText p a:hover{
        color:#01a6fc;
        font-weight:600;
}
.svgText ul li{
        font-size:16px;
        color:#888;
        line-height:2;
}
</style>
</head>
<body>
<div id="svgBox">
        <svg width="100%" height="100">
                <text text-anchor="middle" x="50%" y="50%" class="text text-1">
                        好例子网欢迎您
                </text>
                <text text-anchor="middle" x="50%" y="50%" class="text text-2">
                        好例子网欢迎您
                </text>
                <text text-anchor="middle" x="50%" y="50%" class="text text-3">
                        好例子网欢迎您
                </text>
                <text text-anchor="middle" x="50%" y="50%" class="text text-4">
                        好例子网欢迎您
                </text>
        </svg>
</div>
</body>
	
</html>