css实现全屏菜单悬浮动画效果代码
代码语言:html
所属分类:悬停
代码描述:css实现全屏菜单悬浮动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@300&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Cairo', sans-serif;}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
overflow: hidden;
background: #dcd9cd;
}
ul {
position: relative;
}
ul li {
list-style: none;
text-align: center;
}
ul li a {
color: #333;
text-decoration: none;
font-size: 3em;
padding: 5px 20px;
display: inline-flex;
font-weight: 700;
transition: 0.5s;
}
ul:hover li a {
color: #0002;
}
ul li:hover a {
color: #000;
background: transparent;
}
ul li a:before {
content: &q.........完整代码请登录后点击上方下载按钮下载查看
网友评论0