当前位置:网站首页>鼠标悬停效果二
鼠标悬停效果二
2022-07-01 02:31:00 【紫微前端】

代码展示
<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>边栏推荐
- Optimal Transport系列1
- 7_ Openresty installation
- Machine learning 10 belief Bayesian classifier
- (translation) reasons why real-time inline verification is easier for users to make mistakes
- SWT/ANR问题--StorageManagerService卡住
- 产业互联网中,「小」程序有「大」作为
- SQL语句关联表 如何添加关联表的条件 [需要null值或不需要null值]
- A preliminary understanding of operator overloading
- SWT / anr problem - SWT caused by too long dump time
- 我想知道股票开户怎么开户?究竟网上开户是否安全么?
猜你喜欢
随机推荐
Pulsar theme compression
How to use Jieba participle in unity
CentOS installs multiple versions of PHP and switches
记一次服务部署失败问题排查
js防抖和节流
园区运营效率提升,小程序容器技术加速应用平台化管理
Detailed data governance knowledge system
Desai wisdom number - other charts (parallel coordinate chart): employment of fresh majors in 2021
Pytoch -- foundation refers to the north_ II. What high school students can understand [back propagation and gradient descent]
Fix names in the table (first character uppercase, other lowercase)
Open source basic software companies, looking for you to create the future together (api7.ai)
【微信小程序开发】样式汇总
robots.txt限制搜索引擎收录
RocketQA:通过跨批次负采样(cross-batch negatives)、去噪的强负例采样(denoised hard negative sampling)与数据增强(data augment
(translation) reasons why real-time inline verification is easier for users to make mistakes
如何在智汀中实现智能锁与灯、智能窗帘电机场景联动?
Visual effects, picture to cartoon function
SWT/ANR问题--Dump时间过长导致的SWT
产业互联网中,「小」程序有「大」作为
go: finding module for package







![[JS] [Nuggets] get people who are not followers](/img/cc/bc897cf3dc1dc57227dbcd8983cd06.png)

