Sortable实现拖动排序动画效果代码

代码语言:html

所属分类:拖放

代码描述:Sortable实现拖动排序动画效果代码

代码标签: 排序 动画 效果

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


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

<head>

 
<meta charset="UTF-8">
 

 
 
<style>
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap");
/*===== BASE =====*/
*,
::before,
::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "inter", sans-serif;
  background-color: #f8f8fc;
}

h1 {
  margin: 0;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*===== DRAG and DROP =====*/
.container,
.drop-container {
  display: grid;
}

.container {
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.drop-container {
  row-gap: 1rem;
  padding: 2rem;
  box-shadow: 4px 4px 16px #e1e1e1;
  box-shadow: 0px 4px 12px -1px rgba(0, 0, 0, 0.35);
}
.drop-container > div:nth-child(1) {
  background: #ffdd99;
}
.drop-container > div:nth-child(2) {
  background: #bfc1ff;
}
.drop-container > div:nth-child(3) {
  background: #fcb8b3;
}
..........完整代码请登录后点击上方下载按钮下载查看

网友评论0