吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 4641|回复: 10
收起左侧

[其他转载] HTML5 SVG+CSS3霓虹灯文字边框动画特效

  [复制链接]
wophost 发表于 2019-4-2 17:12
本帖最后由 wophost 于 2019-4-2 18:06 编辑

2019032418360811.png Html部分:
[HTML] 纯文本查看 复制代码
<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>

CSS代码:
[CSS] 纯文本查看 复制代码
#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;
}

就不上效果图了,直接创建html复制过去就可以看到效果.觉得不错就给个免费评分吧!

index.rar

808 Bytes, 下载次数: 75, 下载积分: 吾爱币 -1 CB

免费评分

参与人数 1吾爱币 +3 热心值 +1 收起 理由
苏紫方璇 + 3 + 1 感谢发布原创作品,吾爱破解论坛因你更精彩!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

戴鹏1314 发表于 2019-4-2 17:42
没反应啊,就辛巴博客欢迎您,几个黑字
sphinx7 发表于 2019-4-2 17:54
Oohuo 发表于 2019-4-2 17:56
 楼主| wophost 发表于 2019-4-2 18:05
Oohuo 发表于 2019-4-2 17:56
就是一行黑字??

没问题啊我上传了一个html例子你看下
 楼主| wophost 发表于 2019-4-2 18:07
戴鹏1314 发表于 2019-4-2 17:42
没反应啊,就辛巴博客欢迎您,几个黑字

ie好像不可以 你用谷歌 Firefox 试一试我这里没问题
yqesl1 发表于 2019-4-2 19:48
特别喜欢,svg
bdcpc 发表于 2019-4-4 08:44
下载下来学习下!
xiehaipeng 发表于 2020-9-18 10:00
貌似不错啊
15278066219 发表于 2020-9-18 11:36
可以可以 值得学习
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-4-25 09:21

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表