div+css布局文章卡片列表悬浮动画效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css布局文章卡片列表悬浮动画效果代码,鼠标放上去试试。
代码标签: div css 布局 文章 卡片 列表 悬浮 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;800&display=swap");
html {
font-size: 100%;
-webkit-box-sizing: border-box;
box-sizing: border-box;
-ms-overflow-style: scrollbar;
height: 100%;
scroll-behavior: smooth;
}
*,
*::before,
*::after {
-webkit-box-sizing: inherit;
box-sizing: inherit;
}
body {
background: #22223a;
font-family: "Inter", sans-serif;
font-weight: 400;
line-height: 1.65;
color: #ffffff;
margin: 0;
height: 100%;
}
a {
text-decoration: none;
}
.container {
max-width: 1170px;
width: 100%;
margin: 0 auto;
padding-right: 15px;
padding-left: 15px;
margin-top: 40px;
}
.row {
display: flex;
justify-content: space-between;
}
.col {
width: 32%;
}
@media (max-width: 576px) {
.row {
display: block;
}
.row .col {
width: 100%;
margin: 0 0 10px 0;
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 1.5rem 0 1.5rem;
font-weight: 700;
line-height: 1.5;
font-family: "Inter", sans-serif;
color: #ffffff;
}
.card {
background: #2f2d44;
margin-top: 1.5rem;
border-radius: 6px;
overflow: hidden;
cursor: pointer;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0