当前位置:网站首页>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>边栏推荐
- Open source basic software companies, looking for you to create the future together (api7.ai)
- Some uses of Halcon array
- Visual effects, picture to cartoon function
- Cluster method synchronous execution framework suona
- Ipmitool download address and possible problems during compilation and installation
- pycharm 软件deployment 灰色 无法点
- (总结一)Halcon基础之寻找目标特征+转正
- 开源基础软件公司,寻找一起创造未来的你(API7.ai)
- CentOS installs multiple versions of PHP and switches
- [wechat applet development] style summary
猜你喜欢

Pychart software deployment gray unable to point

js中的图片预加载

Sampling Area Lights

详解数据治理知识体系
![Pytoch -- foundation refers to the north_ II. What high school students can understand [back propagation and gradient descent]](/img/6e/279dbb7a8d7a5ecd240de464c5b8b2.png)
Pytoch -- foundation refers to the north_ II. What high school students can understand [back propagation and gradient descent]

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

Ernie gram, an explicit and complete n-gram mask language model, implements explicit n-gram semantic unit knowledge modeling.

Sampling Area Lights

Comment réaliser la liaison entre la serrure intelligente et la lampe, la scène du moteur de rideau intelligent dans le timing intelligent?

Contrastive learning of Class-agnostic Activation Map for Weakly Supervised Object Localization and
随机推荐
十大券商有哪些?另外想问,现在在线开户安全么?
如果我在北京,到哪里开户比较好?另外,手机开户安全么?
Zero foundation self-study SQL course | window function
Codeforces Round #416 (Div. 2) C. Vladik and Memorable Trip
基于OPENCV和图像减法的PCB缺陷检测
Optimal Transport系列1
Résumé des styles de développement d'applets Wechat
Analysis and solution of anr problems
Applet custom top navigation bar, uni app wechat applet custom top navigation bar
My PMP learning test experience
鼠标悬停效果九
Record a service deployment failure troubleshooting
js防抖和节流
Viewing JVM parameters
SWT / anr problem - binder stuck
鼠标悬停效果七
Visual effects, picture to cartoon function
Pycharm 打开远程目录 Remote Host
Youmeng (a good helper for real-time monitoring of software exceptions: crash) access tutorial (the easiest tutorial for Xiaobai with some foundation)
我的PMP学习考试心得