js+css实现卡片编辑放大缩写钉住效果代码

代码语言:html

所属分类:其他

代码描述:js+css实现卡片编辑放大缩写钉住效果代码

代码标签: js css 卡片 编辑 放大 缩写 钉住

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


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;600&display=swap" rel="stylesheet">
  
  
  
<style>
:root {
  --wrapperSize: 1000px;
}
body {
  display: flex;
  inset: 0;
  position: absolute;
  margin: 0;
  align-items: center;
  justify-content: center;
  background-color: rgb(247, 247, 247);
  font-family: "Inter", sans-serif;
  font-weight: 300;
  line-height: 1.3;
  font-size: 16px;
  color: #333;
  overflow-x: hidden;
}
.grid-item {
  position: relative;
  top: unset;
  z-index: unset;
  width: calc(var(--wrapperSize) / 4 - 20px - 48px);
  height: calc(var(--wrapperSize) / 4 - 20px - 48px);
  margin: 10px;
  padding: 24px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgb(230, 230, 230),
    rgba(149, 157, 165, 0.15) 0px 3px 6px 0px;
  float: left;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition: all 300ms linear 0s;
}
.grid-item .content {
  position: absolute;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  overflow: auto;
  top: 0;
  left: 0;
  padding: 24px;
  z-index: -1;
}
#wrapper {
  max-width: calc(var(--wrapperSize) / 2);
}
.double-width {
  width: calc(var(--wrapperSize) / 2 - 20px - 48px);
}
.half-height {
  height: calc(var(--wrapperSize) / 8 - 20px - 48px);
}
.stickyItem {
  position: sticky;
  top: 0;
  z-index: 999999;
}
.icon-corner {
  position: fixed;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0