用户注册



邮箱:

密码:

用户登录


邮箱:

密码:
记住登录一个月忘记密码?

发表随想


还能输入:200字
云代码 - css代码库

CSS3制作莲花盛开动画

2013-01-29 作者: 小蜜锋举报

[css]代码库

<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>CSS3制作莲花盛开动画</title>
<link href="base.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="prefixfree.min.js"></script>
<style type="text/css" media="screen">
body {
	background-color: #d4d4d4;
}
.demo {
	margin: 40px auto 0;
	width: 500px;
}
.box {
	position: relative;
	height: 400px;
}
.box .leaf {
	position: absolute;
}
.leaf {
	margin-top: 400px;
	width: 300px;
	height: 300px;
	border-radius: 300px 0px;
 background: -*-linear-gradient(45deg, rgba(188, 190, 192, 1) 8%, rgba(158, 31, 99, 1) 30%, rgba(158, 31, 99, 1) 100%);
	opacity: 0.5;
	filter:alpha(opacity=50);
	transform: rotate(45deg);
	transform-origin:  top right;
}
.leaf:nth-child(2) {
 animation: show-2 5s ease-in-out infinite;
}
.leaf:nth-child(3) {
 animation: show-3 5s ease-in-out infinite;
}
.leaf:nth-child(4) {
 animation: show-4 5s ease-in-out infinite;
}
.leaf:nth-child(5) {
 animation: show-5 5s ease-in-out infinite;
}
.leaf:nth-child(6) {
 animation: show-6 5s ease-in-out infinite;
}
.leaf:nth-child(7) {
 animation: show-7 5s ease-in-out infinite;
}
.leaf:nth-child(8) {
 animation: show-8 5s ease-in-out infinite;
}
@keyframes show-2 {
 0% {
 transform: rotate(45deg);
}
 100% {
 transform: rotate(71deg);
}
}
@keyframes show-3 {
 0% {
 transform: rotate(45deg);
}
 100% {
 transform: rotate(96deg);
}
}
@keyframes show-4 {
 0% {
 transform: rotate(45deg);
}
 100% {
 transform: rotate(123deg);
}
}
@keyframes show-5 {
 0% {
 transform: rotate(45deg);
}
 100% {
 transform: rotate(149deg);
}
}
@keyframes show-6 {
 0% {
 transform: rotate(45deg);
}
 100% {
 transform: rotate(175deg);
}
}
@keyframes show-7 {
 0% {
 transform: rotate(45deg);
}
 100% {
 transform: rotate(200deg);
}
}
@keyframes show-8 {
 0% {
 transform: rotate(45deg);
}
 100% {
 transform: rotate(225deg);
}
}
</style>
</head>
<body>
<div class="page">
  <header id="header">
    <hgrounp class="white blank">
      <h1>CSS3制作莲花盛开动画</h1>
      <h2> 作者:藤藤 </h2>
    </hgrounp>
  </header>
  <section class="demo">
    <div class="box">
      <div class="leaf"></div>
      <div class="leaf"></div>
      <div class="leaf"></div>
      <div class="leaf"></div>
      <div class="leaf"></div>
      <div class="leaf"></div>
      <div class="leaf"></div>
      <div class="leaf"></div>
    </div>
  </section>
</div>
</body>
</html>

[代码运行效果截图]


CSS3制作莲花盛开动画

[源代码打包下载]




网友评论    (发表评论)


发表评论:

评论须知:

  • 1、评论每次加2分,每天上限为30;
  • 2、请文明用语,共同创建干净的技术交流环境;
  • 3、若被发现提交非法信息,评论将会被删除,并且给予扣分处理,严重者给予封号处理;
  • 4、请勿发布广告信息或其他无关评论,否则将会删除评论并扣分,严重者给予封号处理。


扫码下载

加载中,请稍后...

输入口令后可复制整站源码

加载中,请稍后...