当前位置:网站首页>Mouse over effect II
Mouse over effect II
2022-07-01 02:38:00 【Ziwei front end】

Code display
<h3 class="hover">Hover Me</h3>
<style>
body {
height: 100vh;
margin: 0;
display: grid;
place-content: center;
}
h3 {
font-family: system-ui, sans-serif;
font-size: 3rem;
margin:0;
cursor: pointer;
padding: 0 .1em;
}
.hover {
--b: 0.1em; /* the thickness of the line */
--c: #1095c1; /* the color */
color: #0000;
padding-block: var(--b);
background:
linear-gradient(var(--c) 50%,#000 0) 0% calc(100% - var(--_p,0%))/100% 200%,
linear-gradient(var(--c) 0 0) 0% var(--_p,0%)/var(--_p,0%) var(--b) no-repeat;
-webkit-background-clip: text,padding-box;
background-clip: text,padding-box;
transition: .3s var(--_s,0s) linear,background-size .3s calc(.3s - var(--_s,0s));
}
.hover:hover {
--_p: 100%;
--_s: .3s;
}
</style>边栏推荐
猜你喜欢

Pychar open remote directory remote host

Pulsar Geo Replication/灾备/地域复制

SWT / anr problem - storagemanagerservice stuck

我的PMP学习考试心得

The mobile edge browser cannot open the third-party application

kubernetes资源对象介绍及常用命令(二)

Xception learning notes

How to use Jieba participle in unity

Applet custom top navigation bar, uni app wechat applet custom top navigation bar

Dell server restart Idrac method
随机推荐
Rocketqa: cross batch negatives, de noised hard negative sampling and data augmentation
RestCloud ETL实践之无标识位实现增量数据同步
Applet custom top navigation bar, uni app wechat applet custom top navigation bar
Pychart software deployment gray unable to point
What are the top ten securities companies? In addition, is it safe to open an account online now?
开源基础软件公司,寻找一起创造未来的你(API7.ai)
Sampling Area Lights
Dell server restart Idrac method
C language a little bit (may increase in the future)
PMP是什么?
联想X86服务器重启管理控制器(XClarity Controller)或TSM的方法
Open source basic software companies, looking for you to create the future together (api7.ai)
SWT / anr problem - anr/je causes SWT
Pychar open remote directory remote host
JS anti shake and throttling
Lenovo x86 server restart management controller (xclarity controller) or TSM method
Dell服务器重启iDRAC方法
js中的图片预加载
鼠标悬停效果十
Do you write API documents or code first?