多彩色卡选择效果

代码语言:html

所属分类:布局界面

代码描述:多彩色卡选择效果

代码标签: 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
.cards {
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: center;
          justify-content: center;
  width: 80vw;
  max-width: 800px;
  height: 40vmin;
}
.card {
  -webkit-box-flex: 1;
          flex: 1 1 0;
  -webkit-transition: all 300ms ease;
  transition: all 300ms ease;
}
.card:hover {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}
body {
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
</style>

</head>
<body translate="no">
<div class="cards">
<div class="card"></div>
<div class="card"></div>
<div class="card"></div>
<div class="card"></div>
<div class="card"></div>
<div class="card"></div>
<div class="card"></div>
<div class="card"></div>
<div class="card"></div>
&.........完整代码请登录后点击上方下载按钮下载查看

网友评论0