html使用指南 用户引导,HTML5卡片堆栈式使用指南(用户引导)动画

CSS

语言:

CSSSCSS

确定

@import url("https://fonts.googleapis.com/css?family=Titillium+Web:300,700,900");

@import url("https://fonts.googleapis.com/css?family=Palanquin:300");

@import url("https://afeld.github.io/emoji-css/emoji.css");

body {

height: 100vh;

width: 100%;

margin: 0;

font-family: 'Palanquin', sans-serif;

font-size: 21px;

color: #8f959a;

line-height: 1.5;

background: linear-gradient(0deg, #6a11cb 0%, #2575fc 100%);

}

.container {

margin: 4em auto;

}

.inner-container {

position: relative;

max-width: 20%;

min-width: 360px;

height: 300px;

width: 100%;

margin: 0 auto 100px;

}

.content {

position: absolute;

opacity: 0;

top: 2em;

left: 10%;

width: 80%;

margin: 0 auto;

}

.active {

display: block !important;

margin: 0 auto;

opacity: 1;

transition: ease-in-out 1s;

}

.card {

position: relative;

background: #fff;

border-radius: 5px;

padding: 2em 0;

height: 300px;

box-sizing: border-box;

transition: .3s ease;

box-shadow: 0 3px 10px -2px rgba(0, 0, 0, 0.35);

}

.card:first-child,

.card:nth-child(2) {

background: #00c4c7;

height: 8px;

border-radius: 5px 5px 0 0;

padding: 0;

box-shadow: none;

}

.card:first-child {

margin: 0 20px;

background: #00b0b2;

}

.card:nth-child(2) {

margin: 0 10px;

}

.card .progress-container {

background: rgba(37, 117, 252, 0.2);

height: 6px;

position: absolute;

bottom: 0;

left: 0;

width: 100%;

border-radius: 0 0 5px 5px;

}

.card .progress-container .step {

background-color: #2575fc;

height: 6px;

width: 33%;

border-radius: 0 0 0 5px;

}

h1 {

font-family: 'Titillium Web', sans-serif;

font-weight: 700;

font-size: 3rem;

color: #00bfc2;

margin: 0;

}

p {

margin-top: 0;

}

a {

color: #00CED1;

text-decoration: none;

position: relative;

}

a:before {

content: '';

position: absolute;

bottom: 2px;

left: 0;

width: 0%;

border-bottom: 2px solid #00CED1;

transition: 0.3s;

}

a:hover:before {

width: 80%;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值