css实现可爱菠萝跳舞动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现可爱菠萝跳舞动画效果代码

代码标签: css 可爱 菠萝 跳舞 动画

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

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

<head>
    <meta charset="UTF-8">
<style>
body {
	background-color:#fafcb8
}
.pineapple {
	font-size:90vmin;
	height:1em;
	margin:5vmin auto;
	width:.9em;
	position:relative
}
.pineapple div {
	position:absolute
}
.leaf {
	background-color:darkgreen;
	border-radius:90% 0 90% 0;
	height:20%;
	top:10%;
	width:20%
}
.leaf.left {
	-webkit-animation:leafLeft .25s ease-in-out alternate infinite;
	animation:leafLeft .25s ease-in-out alternate infinite;
	left:50%;
	transform-origin:bottom left
}
.leaf.middle {
	-webkit-animation:leafMiddle .25s ease-in-out alternate infinite;
	animation:leafMiddle .25s ease-in-out alternate infinite;
	background-color:green;
	left:40%;
	top:5%;
	transform:rotate(-40deg)
}
.leaf.right {
	-webkit-animation:leafRight .25s ease-in-out alternate infinite;
	animation:leafRight .25s ease-in-out altern.........完整代码请登录后点击上方下载按钮下载查看

网友评论0