div+js实现鼠标悬浮三维卡片视觉差异动画效果代码

代码语言:html

所属分类:视觉差异

代码描述:div+js实现鼠标悬浮三维卡片视觉差异动画效果代码

代码标签: div js 鼠标 悬浮 三维 卡片 视觉 差异 动画

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

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

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

  
<style>
@property --ratio-x {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --correction {
  syntax: "<percent>";
  inherits: true;
  initial-value: 0%;
}
@property --ratio-y {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
:root {
  --labs-sys-color-surface: #444;
  --labs-sys-color-on-surface: hsl(0, 100%, 0%);
  --labs-sys-color-background: black;
  --labs-sys-radius-surface: 2rem;
  --c1: #ddb4eb;
}

.logo {
  color: white;
  font-weight: bold;
  font-size: 7cqw;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.logo:before {
  position: absolute;
  content: "CSS";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  color: rgba(0, 0, 0, 0.4);
  z-index: -1;
}
.logo:after {
  position: absolute;
  content: "CSS";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  color: white;
  transform-style: preserve-3d;
  transiti.........完整代码请登录后点击上方下载按钮下载查看

网友评论0