css清爽卡片堆叠文章分类悬浮效果代码
代码语言:html
所属分类:悬停
代码描述:css清爽卡片堆叠文章分类悬浮效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css?family=Arbutus+Slab|Open+Sans&display=swap");
body {
background: #F9F9F9;
color: #495456;
margin: 72px;
font-family: Open Sans, sans-serif;
}
h2 {
font-family: Arbutus Slab, serif;
font-weight: normal;
color: #000;
line-height: 1.25;
}
p {
position: absolute;
bottom: 0;
font-size: 14px;
}
.container {
max-width: 900px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
grid-gap: 48px;
margin: 0 auto;
}
.card {
cursor: pointer;
position: relative;
height: 0;
padding-bottom: 120%;
--offset-multiplier: 4px;
transition: -webkit-transform 0.6s ease;
transition: transform 0.6s ease;
transition: transform 0.6s ease, -webkit-trans.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0