css实现悬浮下划线动画显示效果代码
代码语言:html
所属分类:悬停
代码描述:css实现悬浮下划线动画显示效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
height: 100vh;
width: 100vw;
overflow: hidden;
display: grid;
justify-content: center;
align-content: center;
background: #fff;
}
body ul {
list-style-type: none;
background: #1155cb;
padding: 30px 80px 40px 90px;
border-radius: 5px;
box-shadow: 0 40px 30px -20px rgba(0, 0, 0, 0.25);
}
body ul li {
text-align: left;
position: relative;
}
body ul li:hover:after {
box-shadow: 0 0 0 5px #1155cb, 0 0 0 7px #e0ff00;
}
body ul li:after {
content: "";
position: absolute;
width: 7.5px;
height: 7.5px;
background: #c2ff00;
border-radius: 100%;
left: -25px;
top: 50%;
transform: translate(0, -50%);
box-shadow: 0 0 0 0 #1155cb, 0 0 0 0 #e0ff00;
transition: 0.4s ease-in-out;
}
body ul li:nth-of-type(2) a:before {
bottom: -50px;
transform-origin: left;
}
body ul li:nth-of-type(2) a:hover:before {
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200%25' height='100%25.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0