matterjs模拟挂满文字卡片的绳子重力感应动画效果代码

代码语言:html

所属分类:动画

代码描述:matterjs模拟挂满文字卡片的绳子重力感应动画效果代码

代码标签: 文字 卡片 绳子 重力 感应 动画 效果

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

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

<head>

  <meta charset="UTF-8">

  
  
  
<style>
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@900&display=swap");
body {
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100vw;
}

.link {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 10px;
  background-color: black;
  z-index: 1;
}

.flag {
  display: grid;
  place-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  background-color: red;
  background-size: cover;
  background-position: center;
  z-index: 2;
  color: white;
  font-size: 3rem;
  font-family: "Inter", sans-serif;
  border-radius: 0 0 10px 10px;
}

.flag:nth-child(4n) {
  background-color: coral;
}

.flag:nth-chil.........完整代码请登录后点击上方下载按钮下载查看

网友评论0