
效果图
代码
style.css
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>
<body>
<ul>
<li><span>×</span><a href="#" data-text="Home">Home</a></li>
<li><span>×</span><a href="#" data-text="About">About</a></li>
<li><span>×</span><a href="#" data-text="Services">Services</a></li>
<li><span>×</span><a href="#" data-text="Typing Menu">Typing Menu</a></li>
<li><span>×</span><a href="#" data-text="Our Team">Our Team</a></li>
<li><span> ×</span><a href="#" data-text="Contact Us">Contact Us</a></li>
</ul>
</body>
</html>
*{
margin: 0;
padding: 0;
font-family: consolas;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #1c234a;
}
ul{
position: relative;
}
ul li{
list-style: none;
margin: 0 20px;
font-size: 4em;
}
ul li span{
position: relative;
top: -5px;
left: -10px;
color: transparent;
}
ul li:hover span{
color: red;
}
ul li a
{
position: relative;
color: rgba(255,255,255,0.1);
text-decoration: none;
font-weight: 700;
}
ul li a:before
{
content: attr(data-text);
position: absolute;
top: 0;
overflow-y: hidden;
overflow-x: hidden;
color: #1bfaad;
white-space: nowrap;
}
ul:hover li a:before{
/* steps个字母 */
animation: animate 0.5s steps(11) forwards;
}
@keyframes animate{
0%{
width: 387.063px;
}
100%{
width: 0px;
}
}
ul li:hover a:before{
/* steps个字母 */
animation: animateTwo 2s steps(11) forwards;
}
@keyframes animateTwo{
0%{
width: 0;
}
100%{
width: 387.063px;
}
}
欢迎加群讨论技术,1群:677373950(满了,可以加,但通过不了),2群:656732739
评价
排名
2
文章
634
粉丝
44
评论
93
docker中Sware集群与service
尘叶心繁 : 想学呀!我教你呀
一个bug让程序员走上法庭 索赔金额达400亿日元
叼着奶瓶逛酒吧 : 所以说做程序员也要懂点法律知识
.net core 塑形资源
剑轩 : 收藏收藏
映射AutoMapper
剑轩 :
好是好,这个对效率影响大不大哇,效率高不高
一个bug让程序员走上法庭 索赔金额达400亿日元
剑轩 : 有点可怕
ASP.NET Core 服务注册生命周期
剑轩 :
http://www.tnblog.net/aojiancc2/article/details/167
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2025TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:
50010702506256


欢迎加群交流技术