css实现丛林生火动画效果

代码语言:html

所属分类:布局界面

代码描述:css实现丛林生火动画效果

代码标签: 生火 动画 效果

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


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

<head>

  <meta charset="UTF-8">

  
<style>
@import url('https://fonts.googleapis.com/css2?family=Long+Cang&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: 1s;
}

body {
    height: 100%;
    background: linear-gradient(#122833, #000);
    min-height: 100vh;
}

input {
    opacity: 0;
}

.font h1 {
    position: absolute;
    top: 94%;
    left: 75%;
    color: blanchedalmond;
    font-family: 'Long Cang', cursive;
}

.font2 h1 {
  position: absolute;
  top: 6%;
  left: 20%;
  font-size: 400px;
  font-family: 'Kaushan Script', cursive;
  z-index: -1;
}

.container {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: #122833;
    border: solid 12px #111f27;
    position: absolute;
    top: 20%;
    left: 38%;
    overflow: hidden;
}

.wrapper {
    width: 10%;
    height: 5%;
    position: absolute;
    left: 264px;
    top: 280px;
    display: block;
    cursor: pointer;
    opacity: 1;
    z-index: 4;
}
.red {
    width: 60px;
    height: 60px;
    background: orangered;
    box-shadow: 0px 0px 10px 5px orangered;
}
.orange {
    left: 9px;
    width: 40px;
    height: 40px;
    background: orange;
    box-shadow: 0px 0px 12px 6px orange;
}
.gold {
    left: 17px;
    width: 30px;
    height: 30px;
    background: gold;
    box-shadow: 0px 0px 9px 4px gold;
}
.white {
    left: 16px;
    width: 25px;
    height: 25px;
    background: lightyellow;
    box-shadow: 0px 0px 9px 4px lightyellow;
}
.blue {
    top: 0;
    left: 26px;
    width: 8px;
    height: 4px;
    background: darkblue;
    box-shadow: 0px 0px 15px 10px darkblue;
}
.black {
    left: 24px;
    width: 10px;
    height: 15px;
    bottom: -10px;
    background: black;
    box-shadow: 0px 0px 15px 10px black;
    display: "";
}
.base {
    border-radius: 50%;
    position: absolute;
}
.flame-wrapper {
    position: absolute;
    animation: flicker 1s ease-in infinite;
}
.flame {
    bottom: 0;
    position: absolute;
    border-radius: 50% 0% 50% 50%;
    transform: rotate(-45deg);
}.........完整代码请登录后点击上方下载按钮下载查看

网友评论0