当前位置:网站首页>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>边栏推荐
猜你喜欢

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

Contrastive learning of Class-agnostic Activation Map for Weakly Supervised Object Localization and

联想X86服务器重启管理控制器(XClarity Controller)或TSM的方法
![[2022] Jiangxi postgraduate mathematical modeling scheme and code](/img/f4/86b0dc2bd49c3a54c1e0538b31d458.png)
[2022] Jiangxi postgraduate mathematical modeling scheme and code

详解数据治理知识体系

Lenovo x86 server restart management controller (xclarity controller) or TSM method

pycharm 软件deployment 灰色 无法点

产业互联网中,「小」程序有「大」作为

Optimal transport Series 1

SWT / anr problem - binder stuck
随机推荐
7_ Openresty installation
Contrastive learning of Class-agnostic Activation Map for Weakly Supervised Object Localization and
js防抖和节流
Résumé des styles de développement d'applets Wechat
Use ipmitool to configure BMC network and user information of X86 server
SAP ALV汇总跟导出Excel 汇总数据不一致
C language a little bit (may increase in the future)
SWT / anr problem - deadlock
Viewing JVM parameters
[2022] Jiangxi postgraduate mathematical modeling scheme and code
运算符重载的初识
Visual effects, picture to cartoon function
Xception学习笔记
robots. Txt restrict search engine inclusion
Xception learning notes
(总结一)Halcon基础之寻找目标特征+转正
旷世轻量化网络ShuffulNetV2学习笔记
Small program cloud development -- wechat official account article collection
开源基础软件公司,寻找一起创造未来的你(API7.ai)
[wechat applet development] style summary