纯css实现一个万圣节可爱小南瓜动画效果代码
代码语言:html
所属分类:动画
代码描述:纯css实现一个万圣节可爱小南瓜动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
background-color: #321757;
}
.general-container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation: fly 10s ease-in-out infinite;
}
.shine {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 400px;
height: 300px;
background: radial-gradient(closest-side, #872c91, transparent);
animation: shine 4s ease-in-out infinite alternate;
}
.stem {
position: absolute;
top: -5px;
width: 100px;
height: 25px;
background-color: #2f5c15;
border-radius: 50%;
}
.stem:before {
position: absolute;
top: -44px;
left: 45px;
content: '';
display: block;
width: 25px;
height: 30px;
border-top: 15px solid #2f5c15;
border-left: 10px solid #2f5c15;
border-top-left-radius: 100% 100%;
}
.stem:after {
position: absolute;
top: -32px;
left: 50px;
content: '';
display: block;
width: 25px;
height: 30px;
border-top: 3px solid #264d0f;
border-left: 5px solid #264d0f;
border-top-left-radius: 100% 100%;
}
.pumpkin1 {
position: absolute;
top: 0px;
width: 100.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0