css实现像素企鹅滑雪动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现像素企鹅滑雪动画效果代码

代码标签: css 像素 企鹅 滑雪 动画

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

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

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

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
        * {
      box-sizing: border-box;
    }
    
    .wrapper {
      position: relative;
      width: 100vw;
      height: 100vh;
      background-color: #9df1fc;
      box-shadow: inset rgba(6, 177, 199, 0.8) 0 100px 200px -50px;
      overflow: hidden;
    }
    
    main {
      position: absolute;
      bottom: -20vh;
      left: -50vw;
      width: 200vw;
      height: 60vh;
      background-color: #ffffff;
      transform: rotate(10deg);
      -webkit-animation: horizonRotate 15s ease-in-out alternate infinite;
              animation: horizonRotate 15s ease-in-out alternate infinite;
      background: linear-gradient(to bottom, #ffffff 0%, #ffffff 20%, #fafafa 20%, #fafafa 40%, whitesmoke 40%, whitesmoke 60%, #f0f0f0 60%, #f0f0f0 80%, #ebebeb 80%, #ebebeb 100%);
    }
    
    .mountain {
      position: absolute;
      bottom: calc(100% + 8px*6);
      width: 8px;
 .........完整代码请登录后点击上方下载按钮下载查看

网友评论0