欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

jQuery+CSS3实现树叶飘落特效

程序员文章站 2022-06-13 19:26:06
请使用chrome查看本效果。 html源代码: 代码如下: &l...

请使用chrome查看本效果。

html源代码:

代码如下:


<!doctype html>
<html>
<head>
<title>html5树叶飘落动画-柯乐义</title><base target="_blank" href="https://keleyi.com/keleyi/phtml/css3/" />
<meta charset="utf-8">
<meta name="viewport" content="width=500px, initial-scale=0.64">
<link rel="apple-touch-icon" href=https://www.2cto.com/uploadfile/2018/0103/20180103022929508.png" />
<!-- the leaves.css file animates the leaves -->
<link rel="stylesheet" href="https://keleyi.com/keleyi/phtml/css3/15/leaves.css" type="text/css" media="screen" charset="utf-8">
<script type="text/javascript" src="https://keleyi.com/keleyi/pmedia/jquery/jquery-1.11.2.min.js"></script>
<!-- the leaves.js file creates the leaves -->
<script src="https://keleyi.com/keleyi/phtml/css3/15/leaves.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<p style="text-align: center; clear: both; margin-top:0px">
<span id="keleyi">
请使用chrome浏览器查看本页。
</span>
</p>
<p id="container">
<!-- the container is dynamically populated using the init function in leaves.js -->
<!-- its dimensions and position are defined using its id selector in leaves.css -->
<p id="leafcontainer"></p>
<!-- its appearance, dimensions, and position are defined using its id selector in leaves.css -->
<p id="message">
<em>落红不是无情物</em>
</p>
</p>
</body>
</html>