vfx实现炫酷鼠标跟随液态彩色水彩透明拖影动画代码

代码语言:html

所属分类:动画

代码描述:vfx实现炫酷鼠标跟随液态彩色水彩透明拖影动画代码

代码标签: vfx 炫酷 鼠标 跟随 液态 彩色 水彩 透明 拖影 动画 代码

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

<!DOCTYPE html>
<html>
<head>
<style>
    html, body {
  height: 100%;
  margin: 0;
  color: #1a1a1a;
  background: black;
}

section {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 80px 64px;
}
section:nth-child(even) {
  flex-direction: row-reverse;
  background: #eef;
}
section:nth-child(odd) {
  background: #1a1a1a;
  color: #eef;
}
section:nth-child(even) .text p {
  color: #888;
}

.head {
  height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: #1a1a1a;
  color: #eef;
}
.head h1 {
  font-size: 4rem;
  margin-bottom: 8px;
}
.head p {
  font-size: 2.2rem;
  color: #888;
}

.text, .image {
  flex: 1;
}
.text h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.text p {
  font-size: 1.4rem;
  line-height: 1.8;
}
.image img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

@media (max-width: 768px) {
  section,
  section:nth-child(even) {
    flex-direction: column;
    padding: 48px 24px;
    gap: 24px;
  }
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<div id="app">
  <div class="head">
    <div>
      <h1>Fluid Sim on VFX-JS</h1>
      <p>Mouse move to control waves.</p>
    </div>
  </div>
  <section>
    <div class="text">
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0