js实现拖动排列整齐的数字卡片选择动画效果代码

代码语言:html

所属分类:拖放

代码描述:js实现拖动排列整齐的数字卡片选择动画效果代码,一排卡片排列成s型,你这样拖拽,卡片就会依次位移滚动。

代码标签: js 拖动 排列 整齐 数字 卡片 选择

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

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

<head>
  <meta charset="UTF-8">
  

  
  <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Staatliches&amp;display=swap'>
  
<style>
body {
  position: relative;
  height: 100%;
  background-color: black;
}

#debug {
  width: 40px;
  height: 32px;
  background: white;
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  font-size: 18px;
  font-family: monospace;
  bottom: 60px;
  left: 50%;
  transform: translate(-50%, -50%);
}

.fan {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  perspective: 400px;
  backface-visibility: visible;
  transform-style: preserve-3d;
}
.fan .blade {
  position: absolute;
  left: 0;
  top: 0;
  width: 44.8px;
  height: 35px;
  background: green;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0