div+css实现孔明灯漂浮动画效果代码
代码语言:html
所属分类:动画
代码描述:div+css实现孔明灯漂浮动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<style>
body {
background: linear-gradient(to bottom,#0a0a2e,#000119);
height: 100vh;
margin: 0;
overflow: hidden;
display: flex;
justify-content: center;
align-items: flex-end;
padding-left: 200px
}
.scene {
position: relative;
width: 100%;
height: 100%
}
.lantern {
position: absolute;
bottom: 15%;
animation: float 8s ease-in-out infinite;
filter: drop-shadow(0 0 8px rgba(255,100,0,0.6))
}
.lantern-body {
width: 140px;
height: 180px;
background: linear.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0