当前位置:网站首页>Mouse over effect III
Mouse over effect III
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: #fff;
padding-block: var(--b);
background: linear-gradient(red 0 0) 0% var(--_p,0%)/var(--_p,0%) var(--b) no-repeat;
position: relative;
transition: .3s var(--_s,0s) linear,background-size .3s calc(.3s - var(--_s,0s));
}
.hover:before {
content:"";
position: absolute;
z-index: -1;
inset:-100% 0 0;
background: linear-gradient(var(--c) 50%,#000 0);
transition: .3s var(--_s,0s) linear;
}
.hover:hover {
--_p: 100%;
--_s: .3s;
}
.hover:hover:before {
transform:translateY(50%);
}
</style>边栏推荐
- ANR问题的分析与解决思路
- Dell server restart Idrac method
- UE4渲染管线学习笔记
- go: finding module for package
- Optimal Transport系列1
- I want to know how to open a stock account? Is it safe to open an account online?
- PMP是什么?
- Lenovo x86 server restart management controller (xclarity controller) or TSM method
- Pulsar theme compression
- 手机edge浏览器无法打开三方应用
猜你喜欢

Proxy support and SNI routing of pulsar

VirtualBox installation enhancements

Image preloading in JS
![How to add a condition for an associated table in an SQL statement [null value required or not required]](/img/91/0efbc13597be4dba5b9cf4e8644e35.png)
How to add a condition for an associated table in an SQL statement [null value required or not required]

pycharm 软件deployment 灰色 无法点

@The difference between configurationproperties and @value

How to realize the scene linkage of intelligent lock, lamp and intelligent curtain motor in zhiting?

Optimal transport Series 1

Visual effects, picture to cartoon function

Dell server restart Idrac method
随机推荐
Pytoch -- foundation refers to the north_ II. What high school students can understand [back propagation and gradient descent]
Qu'est - ce que le PMP?
如何在智汀中实现智能锁与灯、智能窗帘电机场景联动?
Clickhouse eliminates the gap caused by group by
SWT / anr problem - SWT caused by long execution time of native method
Ipmitool download address and possible problems during compilation and installation
运算符重载的初识
使用ipmitool配置X86服务器的BMC网络和用户信息
js中的图片预加载
LabVIEW calculates the camera image sensor resolution and lens focal length
How do the top ten securities firms open accounts? Also, is it safe to open an account online?
Codeforces Round #416 (Div. 2) C. Vladik and Memorable Trip
The mobile edge browser cannot open the third-party application
map数组函数
Contrastive learning of Class-agnostic Activation Map for Weakly Supervised Object Localization and
Xception学习笔记
In the industrial Internet, "small" programs have "big" effects
Dell服务器重启iDRAC方法
[2022] Jiangxi postgraduate mathematical modeling scheme and code
Leetcode interview question 17.10 Main elements