当前位置:网站首页>端午节-简单侧边导航栏
端午节-简单侧边导航栏
2022-06-21 06:07:00 【GUIDM】
这件事!就是有一天我逛b站,主页推给我一个视频,是一个会移动的盒子,我想着这个做导航栏正合适然后我就学习了一下,改了改变成了一个侧边导航栏
源码记录一下以防丢失,无商用,仅记录源码。
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>CSS iSOmetric </title>
</head>
<body>
<ul>
<li style="--i:6"><a href="#">关于</a></li>
<li style="--i:5"><a href="#">端午节</a></li>
<li style="--i:4"><a href="#">起源</a></li>
<li style="--i:3"><a href="#">故事</a></li>
<li style="--i:2"><a href="#">风俗</a></li>
<li style="--i:1"><a href="#">更多</a></li>
</ul>
</body>
</html>CSS
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Oswald',sans-serif;
}
body{
display: flex;
justify-content: left;
align-items: center;
min-height: 100vh;
font-size: large;
font-family: 'Courier New', Courier, monospace;
}
ul{
position: relative;
transform: skewY(-5deg);
}
ul li{
position: relative;
list-style: none;
width: 150px;
height: 85px;
background: #ecbad6;
padding: 15px;
z-index: var(--i);
transform: 0.5s;
}
ul li:hover{
background: #33a3ee;
transform: translateX(45px);
}
ul li::before{
content: '';
position: absolute;
top:0;
left:-40px;
width: 40px;
height: 100%;
background: #6eb8e9;
transform-origin: right;
transform: skewY(45deg);
transform: 0.5s;
}
ul li:hover::before{
background: #2982b9;
}
ul li::after{
content: '';
position:absolute;
top:-40px;
left: 0;
width: 100%;
height: 40px;
background: #ecbad6;
transform-origin: bottom;
transform: skewX(45deg);
transform: 0.5s;
}
ul li:hover::after{
background: #2982b9;
}
ul li a{
text-decoration: none;
color: rgb(255, 255, 255);
display: block;
text-transform: uppercase;
letter-spacing: 0.05em;
transform: 5s;
}
ul li:hover a{
color: rgb(0, 0, 0);
}
ul li:last-child::after{
box-shadow: -85px 150px 20px rgb(0, 0,0,0.25);
}

边栏推荐
- nametuple的源码为什么要使用.replace(‘,‘, ‘ ‘).split()而不是.split(‘,‘)
- Contos7 installing SVN server
- Pycharm设置项目的默认解释器
- R statistical plot - correlation of environmental factors +mantel test combination diagram (linket package introduction 1)
- 用递归和循环两种方法解决华为4月20日机试第一题(100分)
- Xshell7 connects to the server remotely and suspends the process to keep the program running
- Required questions for group planning: storage system (completed, with detailed analysis attached)
- Backtracking method of graph coloring problem (the most easy to understand)
- 【JVM】 类加载器(ClassLoader)
- Aurora8B10B IP使用 -05- 收发测试应用示例
猜你喜欢

Aurora8B10B IP使用 -05- 收发测试应用示例

Aurora8b10b IP usage-01-introduction and port description

Microbial ecological data analysis - redundancy analysis

Sub-Category Optimization for Multi-View Multi-Pose Object Detection

Aurora8b10b IP usage-05-transceiver test application example

IP - 射频数据转换器 -04- API使用指南 - 系统设置相关函数

Aurora8B10B IP使用 -04- IP例程应用实例

DDD Practice Manual (4. aggregate aggregate)

如何限制内网网速

Memorizing Normality to Detect Anomaly: Memory-augmented Deep Autoencoder for Unsupervised Anomaly D
随机推荐
TypeError: iter() returned non-iterator of type ‘xxx‘
【数据挖掘】期末复习 第三章
Aurora8B10B IP使用 -01- 简介与端口描述
FPGA - 7系列 FPGA SelectIO -06- 逻辑资源之ODELAY
Pyshark tutorial
【数据挖掘】期末复习 第二章
Improved Object Categorization and Detection Using Comparative Object Similarity
双调查找:数组先递增后递减
You have an error in your SQL syntax; check the manual that corresponds to your MYSQL server
FPGA - 7 Series FPGA selectio -01- introduction and DCI technology introduction
5254. 卖木头块 动态规划
Judge whether a tree is a complete binary tree
pyshark使用教程
上手自定义线程池
微生物生态排序分析——CCA分析
scala中函数和方法
Q & A: issues related to "micro build low code" billing
Memorizing Normality to Detect Anomaly: Memory-augmented Deep Autoencoder for Unsupervised Anomaly D
FPGA - 7 Series FPGA selectio -06- odelay of logic resources
[data mining] final review Chapter 5