css+js实现科技风格表格分页悬浮滚动翻页效果代码

代码语言:html

所属分类:表格

代码描述:css+js实现科技风格表格分页悬浮滚动翻页效果代码,支持鼠标滚轮滚动翻页,支持鼠标悬浮动画,自带总数进度条。

代码标签: css js 科技 风格 表格 分页 悬浮 滚动 翻页

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

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

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

<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.4.0.css">
  
<style>
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900;1000&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
body {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: linear-gradient(#00121B, #000102);
  overflow: hidden;
  font-family: "Cairo", sans-serif;
}

.d-flex {
  display: flex;
}

.row {
  flex-direction: row;
}

.flex-fill {
  flex: 1 1 auto;
  width: 100%;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-start {
  justify-content: flex-start;
}

.justify-content-end {
  justify-content: flex-end;
}

.align-items-center {
  align-items: center;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-end {
  align-items: flex-end;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0turn;
}
@keyframes conic-rotate {
  to {
    --angle: 1turn;
  }
}
.table-container {
  position: relative;
  display: flex;
  width: 85vw;
  height: calc(((var(--data-limit) + 1) * 2rem) + 10rem);
  transform-style: preserve-3d;
  box-shadow: inset 0 -0.5rem 1rem rgba(0, 18, 27, 0.5), inset 0 0 1rem rgba(127, 255, 212, 0.3);
  border: 2px solid rgba(127, 255, 212, 0.5);
  border-radius: 1rem;
  flex-direction: column;
}
.table-container::before {
  position: absolute;
  display: flex;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: conic-gradient(from var(--angle), #80FF80, rgba(127, 255, 212, 0.5), #80FF80, royalblue, #80FF80);
  filter: blur(0.5rem);
  transform: translatez(-2px);
  z-index: -2;
  opacity: 0.99;
  animation: conic-rotate 12s infinite linear;
}
.table-container::after {
  position: absolute;
  display: flex;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 18, 27, 0.95);
  transform: translatez(-1px);
  z-index: -1;
  border-radius: inherit;
}

.table {
  position: relative;
  display: flex;
  width: 100%;
  padding: 1rem 0 0 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(90deg, transparent, rgba(128, 255, 128, 0.15), transparent);
  -webkit-background-image: linear-gradient(90deg, transparent, rgba(128, 255, 128, 0.15), transparent);
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}
.table .table-row {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: inherit;
  width: calc(100% - 4rem);
  padding: 0 2rem;
  transition: opacity 0.5s;
}
.table .table-row:nth-child(2n) {
  background-color: rgba(0, 0, 0, 0.1);
}
.table .table-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: inherit;
  flex: 1 1 0;
  height: 2rem;
  justify-content: center;
  align-items: flex-start;
  color: #7FFFD4;
  text-shadow:.........完整代码请登录后点击上方下载按钮下载查看

网友评论0