最新下载
24小时阅读排行榜
- 1 喜马拉雅电脑版安装版_喜马拉雅电脑安装版获取与安装
- 2 Python 实战:博客内容管理系统雏形
- 3 家具积灰怎么擦更省力?
- 4 如何理解JavaScript中的对象创建模式?
- 5 PHP动态网页RSS订阅生成_PHP动态网页RSSfeed订阅源创建指南
- 6 如何通过JavaScript实现星级评分组件?
- 7 谷歌地球pro专业版免费下载_谷歌卫星地图2025超清版直接进入
- 8 扫描全能王怎么分类文档_扫描全能王文件夹分类管理指南
- 9 poki跑酷游戏免费体验_poki小游戏休闲跑酷免下载玩
- 10 喜马拉雅山录音导电脑_喜马拉雅录音导出到电脑教程
- 11 使用Python检测Ctrl+R组合键并重启程序
- 12 电脑上搜狗输入法怎么调出来_电脑搜狗输入法呼出与切换
- 13 万兴数据管家功能详解 微信记录恢复与数据管理教程
- 14 phpcms模板中截取字符串方法
- 15 哈啰出行账号注册指南_一步步教你注册哈啰出行APP账号
最新教程
-
- Node.js 教程
- 2969 2025-08-28
-
- CSS3 教程
- 339379 2025-08-27
-
- Rust 教程
- 3684 2025-08-27
-
- Vue 教程
- 4453 2025-08-22
-
- PostgreSQL 教程
- 4587 2025-08-21
-
- Git 教程
- 3440 2025-08-21
jQuery雪花缓慢飘落图标特效是一款html5雪花字体制作下雪天缓缓飘落各种雪花图标特效。
var fa = false;
//more layers and css blur will cause performance drop
var layer2 = new Layer(16, 6);
setInterval(layer2.addIcon, 150);
var layer1 = new Layer(32, 4);
setInterval(layer1.addIcon, 300);
function Layer(fontSize, speed){
this.addIcon = function(){
var random_icon = icons[Math.floor(Math.random()*icons.length)];
$random_x = Math.floor((Math.random() * 600) + 1);
if(fa){
var $icon = $('<i style="font-size:' + fontSize + 'px;" class="fa ' + random_icon + '" aria-hidden="true"></i>').appendTo(".scene");
}else{
var $icon = $('<i style="font-size:' + fontSize + 'px;" class="fa fa-snowflake-o" aria-hidden="true"></i>').appendTo(".scene");
}
//initial position
TweenLite.to($icon, 0, {x: $random_x, color: "#2222ff", y: -80});
//main animation
TweenLite.to($icon, speed, {color: "#ff00ff", y: 600, x: $random_x + (Math.random() * 400), opacity: 0, ease:Linear.easeNone, onComplete: deleteIcon, onCompleteParams: ["{self}"]});
//rotate animation
var rotation_speed = (Math.random() + 10);
TweenMax.to($icon, rotation_speed, {rotation: 390, ease:Linear.easeNone, repeat: -1});
};

