js+css实现全屏玻璃体透明侧边栏菜单伸缩效果代码

代码语言:html

所属分类:菜单导航

代码描述:js+css实现全屏玻璃体透明侧边栏菜单伸缩效果代码

代码标签: js css 全屏 玻璃体 透明 侧边栏 菜单 伸缩

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
<style>
    * {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	list-style: none;
	box-sizing: border-box;
}

body {
	min-height: 100vh;
	background-image: url('//repo.bfw.wiki/bfwrepo/image/5f24e1feda734.png');
	background-repeat: no-repeat;
	background-size: cover;
	font-family: 'Roboto', sans-serif;
}

.sidebar {
	width: 120px;
	height: 100%;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	background: rgba(10, 10, 10, .65);
	box-shadow: 0 8px 32px rgb(2, 4, 24);
	border-right: 2px solid rgba(255, 255, 255, .09);
	transition: .4s ease-in-out;
}

.sidebar.open {
	width: 360px;
}

.sidebar .logo {
	width: 100%;
	height: 240px;
	padding: 40px 0;
	display: grid;
	align-items: center;
	justify-items: center;
}

.sidebar .logo.........完整代码请登录后点击上方下载按钮下载查看

网友评论0