纯css打造万圣节ghost鬼飘动动画效果代码

代码语言:html

所属分类:动画

代码描述:纯css打造万圣节ghost鬼飘动动画效果代码

代码标签: 万圣节 ghost 飘动 动画 效果

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


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

<head>

  <meta charset="UTF-8">
  

  
  
<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #00034b;
}

.ghost {
  position: relative;
  width: 150px;
  height: 225px;
  background: #ffffff;
  box-shadow: -17px 0px 0px #dbdbdb inset, 0 0 50px #5939db;
  border-radius: 100px 100px 0 0;
  animation: float 2s infinite;
}
.ghost__eyes {
  display: flex;
  justify-content: space-around;
  margin: 0 auto;
  padding: 70px 0 0;
  width: 90px;
  height: 20px;
}
.ghost__eyes:before, .ghost__eyes:after {
  content: ".........完整代码请登录后点击上方下载按钮下载查看

网友评论0