react实现左侧弹出圆弧式菜单效果代码
代码语言:html
所属分类:菜单导航
代码描述:react实现左侧弹出圆弧式菜单效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;500&display=swap" rel="stylesheet">
<style>
body {
margin: 0px;
overflow: hidden;
padding: 0px;
}
body input, body h1, body h2, body h3, body a {
font-family: "Rubik", sans-serif;
font-weight: 400;
margin: 0px;
padding: 0px;
}
#app {
background-color: #2d3240;
height: 100vh;
overflow: hidden;
width: 100vw;
}
#app #menu-toggle {
background-color: white;
border: none;
border-radius: 8vh;
bottom: 0px;
box-shadow: 0px 0px 10px 4px rgba(0, 0, 0, 0.08);
cursor: pointer;
height: 8vh;
left: 0px;
margin: 2vh;
position: fixed;
width: 8vh;
z-index: 3;
}
#app #menu-toggle:hover {
background-color: #f0f0f0;
}
#app #menu-toggle i {
color: #64b5f6;
font-size: 2vh;
height: 3vh;
line-height: 3vh;
text-align: center;
width: 3vh;
}
#app #menu {
height: 100vh;
opacity: 0;
position: absolute;
transform: translateX(-50%);
transition: opacity 250ms, transform 250ms;
transition-delay: 300ms;
width: 40vh;
}
#app #menu.toggled {
opacity: 1;
transform: translateX(0%);
transition-delay: 0ms;
}
#app #menu.toggled #menu-quick-options .menu-quick-option {
opacity: 1;
transform: translateX(0%);
}
#app #menu.toggled #menu-quick-options .menu-quick-option:first-of-type, #app #menu.toggled #menu-quick-options .menu-quick-option:last-of-type {
transform: translateX(-50%);
}
#app #menu.toggled #menu-full-options .menu-full-option {
opacity: 1;
transform: translateX(-0.5vh);
}
#app #menu.toggled #menu-full-options .menu-full-option:first-of-type, #app #menu.toggled #menu-full-options .menu-full-option:last-of-type {
transform: translateX(-4vh.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0