代码拉取完成,页面将自动刷新
同步操作将从 木兰君/前端页面效果合集 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
@import url("https://fonts.googleapis.com/css?family=Signika");
*,
::before,
::after {
box-sizing: border-box;
}
body {
margin: 0;
height: 100vh;
overflow: hidden;
display: flex;
line-height: 1.5;
font-family: 'Signika', cursive;
font-weight: 300;
background-color: #21213d;
color: #fff;
}
a {
text-decoration: none;
color: #3369e7;
}
#check {
display: none;
}
#check+label {
position: absolute;
top: 1em;
left: 1em;
z-index: 1;
display: flex;
align-items: center;
cursor: pointer;
}
#check+label::before {
position: absolute;
content: '';
top: -1em;
left: -1em;
width: 100vw;
height: 100vh;
background-color: rgba(33, 33, 61, 0.5);
transform-origin: 50% 50%;
transform: scale(1.3);
visibility: hidden;
opacity: 0;
transition: all 250ms linear;
}
#check+label svg {
margin-right: 0.5em;
}
#check+label svg path {
transform-origin: 35% 50%;
transition: transform 166.6666666667ms cubic-bezier(0.06, 0.63, 0.91, 0.66);
}
#check:checked+label~aside {
transform: none;
}
#check:checked+label::before {
left: calc(25vw - 1em);
transform: scale(1);
visibility: visible;
opacity: 1;
}
@media (max-width: 576px) {
#check:checked+label::before {
left: calc(50vw - 1em);
}
}
#check:checked+label svg #one {
transform: rotate(45deg);
}
#check:checked+label svg #two {
transform: rotate(-45deg);
}
#check:checked+label~article {
z-index: -1;
transform: translateX(25vw) scale(0.7);
border-radius: 0.25em;
user-select: none;
pointer-events: none;
}
aside,
article {
padding: 2.5em 1em 0.25em;
transition: all 250ms cubic-bezier(0.06, 0.63, 0.91, 0.66);
}
aside {
position: absolute;
width: 25vw;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
background-image: linear-gradient(45deg, #3369e7, #2ede98);
transform: translateX(-100%);
}
@media (max-width: 576px) {
aside {
width: 50vw;
}
}
article {
position: relative;
transform-origin: 10% 50%;
width: 100%;
background-image: linear-gradient(45deg, #1cc7d0, #2ede98);
}
article .wrapper {
margin: auto;
padding: 2em;
max-width: 90%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
article .wrapper h1 {
margin: 0;
}
article .wrapper .footer {
text-align: right;
}
</style>
</head>
<body>
<input type="checkbox" id="check" />
<label for="check">
<svg viewBox="0 0 30 30" width="30" height="30">
<path id="one" d="M4 10h22M4" stroke="#fff" stroke-width="2" stroke-linecap="round"></path>
<path id="two" d="M4 20h22M4" stroke="#fff" stroke-width="2" stroke-linecap="round"></path>
</svg> Click me
</label>
<aside>
<div class="top">
<h2>Title</h2>
<ul>
<li>Nav text</li>
<li>Nav text</li>
<li>Nav text</li>
<li>Nav text</li>
<li>Nav text</li>
</ul>
</div>
<div class="bottom">
<p>© 2019 by Andrej Sharapov</p>
</div>
</aside>
<article>
<div class="wrapper">
<div class="content">
<h1>Off-Canvas menu on Pure CSS</h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Provident rerum unde porro consequatur
doloribus ex distinctio similique, voluptas repellendus voluptates nam dolorum! Repudiandae maxime,
itaque vero dolorem distinctio inventore explicabo!</p>
<p>Odio eaque cum blanditiis esse, earum saepe voluptate quae aliquid possimus facere non qui illo
necessitatibus eveniet ab sit quaerat. Atque animi nulla veritatis molestiae qui ipsam ut assumenda
facilis?</p>
</div>
<div class="footer">
<p>Follow me <a href="https://twitter.com/andrejsharapov" target="_blank" title="">in Twitter</a></p>
</div>
</div>
</article>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。