css实现一个火苗燃烧动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现一个火苗燃烧动画效果代码

代码标签: 火苗 燃烧 动画 效果

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


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

<head>

  <meta charset="UTF-8">

  
  
  
<style>
body {
  display: grid;
  grid-template: 1fr 1fr 1fr/1fr 1fr 1fr;
  background: black;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.fire {
  position: relative;
  grid-column: 2/3;
  grid-row: 2/3;
  align-self: end;
  justify-self: center;
  width: 300px;
  height: 300px;
  background: #880e4f;
  border-radius: 50%;
  box-shadow: 0 0 50px 50px #880e4f;
  animation: background 5s ease infinite;
}

.flame {
  position: absolute;
  bottom: 70px;
  width: 100px;
  height: 100px;
  background-color: red;
  border-radius: 0 70%;
  box-shadow: -10px -10px 0 10p.........完整代码请登录后点击上方下载按钮下载查看

网友评论0