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.5.........完整代码请登录后点击上方下载按钮下载查看

网友评论0