css单选radio按钮样式css多选框checkbox样式css响应式汉堡菜单(左滑、抽屉)css实现遮罩层弹出效果一组好看的css按钮效果(6种)css实现select下拉选择框css实现选项卡功能css实现下拉菜单css按钮样式代码(16种)css实现手风琴效果css图片轮播效果css进度条样式css实现侧边栏菜单css加载动画css背景动画效果css开关按钮样式(18种)css炫酷的圆形菜单css提示tooltip效果css手风琴_好看的Gallery伸缩效果css表格样式css分段控件导航栏css折角效果css粒子背景动画效果css进度圆圈连线css响应式分页样式代码css各种天气样式动画图标css层叠卡片滑出特效css下拉Dropdown菜单css圆圈按钮tip提示特效css和svg圆圈进度样式代码css动画404页面代码css爱心跳动动画代码css绘制逼真玻璃球效果css模拟开关灯特效创意css网格布局带动画效果css星级打分radio五角星css卡片悬浮翻转特效div上下浮动纯css动画css时间轴样式(timeLine)css文字循环翻滚动画效果css输入框动效css鼠标悬停缩放比例效果css模糊背景毛玻璃效果css实现小球循环跳动动画css实现标签样式Tagscss进度条阴影动画css绘制的小鸟css svg按钮冒泡动画特效css svg蓝色波浪动画特效css创意svg菜单栏水滴动画css文字进度条的实现CSS实现内容折叠/展开效果CSS3手机充电特效css实现鼠标点击拖拽效果CSS实现一个计时器纯CSS渐变绘制 Chrome 图标CSS 渐变来实现波浪动画纯CSS动态显示屏幕宽高

css层叠卡片滑出特效

Steps to Frontend Success

A life well lived.

Step 1

Write some markup.

Step 2

Write some css.

Step 3

Look up stuff on MDN.

Step 4

Switch Pre-Processors. Because things are starting to get complicated.

Step 5

Thow out your work start over,becasuse this time you definately choose the right framework.

Step 6

Break down and cry.

Step 7

Curl up in fetal position.

Step 8

Write more CSS to cover up your already bad CSS.


源码

<div card-stack><input id="card-0" name="card-set" type="radio" checked="">
<div card>
<div class="content">
<h2>Steps to Frontend Success</h2>
<p>A life well lived.</p><label for="card-1">Learn More</label>
</div>
</div><input id="card-1" name="card-set" type="radio">
<div card>
<div class="content">
<h2>Step 1</h2>
<p>Write some markup.</p><label for="card-2">Go to 2</label>
</div>
</div><input id="card-2" name="card-set" type="radio">
<div card>
<div class="content">
<h2>Step 2</h2>
<p>Write some CSS.</p><label for="card-3">Go to 3</label>
</div>
</div><input id="card-3" name="card-set" type="radio">
<div card>
<div class="content">
<h2>Step 3</h2>
<p>Look up stuff on MDN.</p><label for="card-4">Go to 4</label>
</div>
</div><input id="card-4" name="card-set" type="radio">
<div card>
<div class="content">
<h2>Step 4</h2>
<p>Switch Pre-Processors. Because things are starting to get complicated.</p><label for="card-5">Go to 5</label>
</div>
</div><input id="card-5" name="card-set" type="radio">
<div card>
<div class="content">
<h2>Step 5</h2>
<p>Thow out your work start over,becasuse this time you definately choose the right framework.</p><label for="card-6">Go to 6</label>
</div>
</div><input id="card-6" name="card-set" type="radio">
<div card>
<div class="content">
<h2>Step 6</h2>
<p>Break down and cry.</p><label for="card-7">Go to 7</label>
</div>
</div><input id="card-7" name="card-set" type="radio">
<div card>
<div class="content">
<h2>Step 7</h2>
<p>Curl up in fetal position.</p><label for="card-8">Go to 8</label>
</div>
</div><input id="card-8" name="card-set" type="radio">
<div card>
<div class="content">
<h2>Step 8</h2>
<p>Write more CSS to cover up your already bad CSS.</p><label for="card-0">Start Over</label>
</div>
</div>
</div>

<style>
body {
background: #248c46
}
[card-stack] {
will-change: transform;
position: relative;
width: 20rem;
margin-left: auto;
margin-right: auto;
margin-top: 1rem
}
[name=card-set] {
display: none
}
[name=card-set]:checked+[card] {
display: flex;
opacity: 1;
filter: blur(0);
transform: translateY(0) scale(1);
transition: transform 1s, opacity 1s, filter .25s;
transition-delay: .3s;
z-index: 0
}
[name=card-set]:checked+[card]~[card] {
z-index: -1;
display: flex;
opacity: .9;
filter: blur(1px);
transform: translateY(1.2rem) scale(0.95);
transition: transform 1.5s, opacity 1.5s, filter .5s;
transition-delay: .4s
}
[name=card-set]:checked+[card]~[card]~[card] {
z-index: -2;
display: flex;
opacity: .7;
filter: blur(2px);
transform: translateY(2.4rem) scale(0.9);
transition: transform 2s, opacity 2s, filter 1.5s;
transition-delay: .5s
}
[name=card-set]:checked+[card]~[card]~[card]~[card] {
z-index: -3;
display: flex;
opacity: .5;
filter: blur(3px);
transform: translateY(3.6rem) scale(0.85);
transition: transform 2.5s, opacity 2.5s, filter 2s;
transition-delay: .7s
}
[name=card-set]:checked+[card]~[card]~[card]~[card]~[card] {
z-index: -4;
display: flex;
opacity: 0;
filter: blur(4px);
transform: translateY(5rem) scale(0.8);
transition: transform 3s, opacity 3s, filter 2.5s;
transition-delay: .8s
}
[card] {
display: flex;
will-change: filter opacity transform;
position: absolute;
top: 0;
width: 100%;
background-color: white;
opacity: 0;
transform: translateY(0) translateX(calc(-100% - 1rem)) scale(1);
transition: transform .5s, opacity .2s .3s, filter .1s;
transition-timing-function: ease-in;
box-shadow: 0 .2rem 0 rgba(0, 0, 0, 0.2);
border-radius: 5px;
justify-content: center;
align-items: center;
z-index: 1;
min-height: 50vh
}
[card]::before {
content: "";
display: block;
padding-bottom: 130%
}
[card] .content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
padding: 2rem;
text-align: center
}
[card] label {
color: white;
display: inline-block;
padding: 1rem 2rem;
margin: 1rem;
background-color: #47cf73;
border-radius: 200px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none
}
[card] label:hover {
background-color: #6fda92
}
[card] label:active {
background-color: #248c46
}
</style>


链接: https://fly63.com/course/33_1601