shader-doodle实现不同方块大小的背景飘动动画效果代码

代码语言:html

所属分类:背景

代码描述:shader-doodle实现不同方块大小的背景飘动动画效果代码

代码标签: 方块 小的 背景 飘动 动画 效果

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">




    <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Cormorant:300i,600&amp;display=swap'>

    <style>
        html {
          box-sizing: border-box;
        }
        
        *,
        *:before,
        *:after {
          box-sizing: inherit;
        }
        
        body {
          display: flex;
          min-height: 100vh;
          padding: 1rem;
          align-items: center;
          justify-content: center;
          font-size: 16px;
          background-color: #f7f3e9;
          font-family: 'Cormorant', serif;
          overflow: hidden;
        }
        
        a,
        a:link,
        a:visited,
        a:active,
        a:hover {
          display: flex;
          flex-flow: row wrap;
          justify-content: center;
          align-items: center;
          color: #000;
          text-decoration: none;
        }
        
        .desc {
          display: flex;
          min-width: 15rem;
          max-width: 30rem;
          align-self: stretch;
          flex-direction: column;
          flex: 1 1 auto;
          padding-right: 5rem;
        }
        
        h1 {
          display: flex;
          flex-direction: column;
          justify-content: flex-end;
          margin: 0;
          padding: 0.4rem 0;
          border-bottom: 1px solid #000;
          font-size: 6rem;
          line-height: 1;
          font-weight: 600;
          flex: 1 1 50%;
        }
        
        h2 {
          display: flex;
          flex-direction: column;
          justify-content: flex-start;
          margin: 0;
          pad.........完整代码请登录后点击上方下载按钮下载查看

网友评论0