jquery實(shí)現(xiàn)漫天雪花飛舞的圣誕祝福雪花效果代碼分享
這是一款基于jquery實(shí)現(xiàn)的漫天雪花飛舞的圣誕祝福雪花效果代碼,雪花的大小可以進(jìn)行切換,用戶還可以更改背景圖片,是一款非常實(shí)用的幻燈片特效源碼。
漫天雪花飛舞的jquery圣誕祝福雪花效果,集中不同的效果可以點(diǎn)擊選擇,請欣賞。
效果演示 源碼下載(瀏覽器中如果不能正常運(yùn)行,可以嘗試切換瀏覽模式或者選擇直接下載)

為大家分享的漫天雪花飛舞的jquery圣誕祝福雪花效果代碼如下
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="images/jquery-latest.min.js"></script>
<script src='images/snowfall.jquery.js'></script>
<link rel="stylesheet" href="images/styles.css"></link>
</head>
<body class="darkBg">
<input type="button" id="clear" value="Click to clear"/>
<input type="button" id="round" value="Rounded"/>
<input type="button" id="shadows" value="Shadows"/>
<input type="button" id="roundshadows" value="Rounded Shadows"/>
<input type="button" id="deviceorientation" value="Deviceorientation"/>
<div class="collectonme">
<p>Collect on meeeeee!!!</p>
</div>
<div class="collectonme">
<p>Collect on meeeeee!!!</p>
</div>
<div class="collectonme">
<p>Collect on meeeeee!!!</p>
</div>
</body>
<script type='text/javascript'>
$(document).ready(function(){
$('.collectonme').hide();
//Start the snow default options you can also make it snow in certain elements, etc.
$(document).snowfall();
$("#clear").click(function(){
$(document).snowfall('clear'); // How you clear
});
$("#round").click(function(){
document.body.className = "darkBg";
$('.collectonme').hide();
$(document).snowfall('clear');
$(document).snowfall({round : true, minSize: 5, maxSize:8}); // add rounded
});
$("#shadows").click(function(){
document.body.className = "lightBg";
$('.collectonme').hide();
$(document).snowfall('clear');
$(document).snowfall({shadow : true, flakeCount:200}); // add shadows
});
$("#roundshadows").click(function(){
document.body.className = "lightBg";
$('.collectonme').hide();
$(document).snowfall('clear');
$(document).snowfall({shadow : true, round : true, minSize: 5, maxSize:8}); // add shadows
});
$("#deviceorientation").click(function(){
$(document).snowfall('clear');
$('.collectonme').hide();
document.body.className = "darkBg";
$(document).snowfall({deviceorientation : true, round : true, minSize: 5, maxSize:8});
});
});
</script>
<p align="center"><font color="#FFFFFF">來源:</font><a href="http://www.dhdzp.com/" target="_blank"><font color="#FFFFFF">腳本之家</font></a></p>
</html>
以上就是為大家分享的漫天雪花飛舞的jquery圣誕祝福雪花效果代碼,希望大家可以喜歡。
- canvas雪花效果核心代碼分享
- Canvas實(shí)現(xiàn)動態(tài)的雪花效果
- android自定義view實(shí)現(xiàn)圓周運(yùn)動
- Android自定義view實(shí)現(xiàn)輸入框效果
- Android自定義View實(shí)現(xiàn)雪花特效
- Android自定義view之太極圖的實(shí)現(xiàn)教程
- Android自定義View實(shí)現(xiàn)分段選擇按鈕的實(shí)現(xiàn)代碼
- Android自定義View圓形圖片控件代碼詳解
- Android自定義View實(shí)現(xiàn)跟隨手指移動的小兔子
- Android自定義view實(shí)現(xiàn)倒計(jì)時(shí)控件
- Android如何用自定義View實(shí)現(xiàn)雪花效果
相關(guān)文章
使用jquery+CSS3實(shí)現(xiàn)仿windows10開始菜單的下拉導(dǎo)航菜單特效
本文是基于jquery和css3實(shí)現(xiàn)的仿windows10開始菜單的下拉導(dǎo)航菜單特效,代碼超簡單,感興趣的朋友一起看看吧2015-09-09
jQuery手動點(diǎn)擊實(shí)現(xiàn)圖片輪播特效
這篇文章主要為大家詳細(xì)介紹了jQuery手動點(diǎn)擊實(shí)現(xiàn)圖片輪播特效,手動點(diǎn)擊數(shù)字卡片實(shí)現(xiàn)圖片輪播,對圖片輪播感興趣的小伙伴們可以參考一下2015-12-12
jQuery實(shí)現(xiàn)QQ空間漢字轉(zhuǎn)拼音功能示例
這篇文章主要介紹了jQuery實(shí)現(xiàn)QQ空間漢字轉(zhuǎn)拼音功能,結(jié)合具體實(shí)例形式分析了jQuery實(shí)現(xiàn)拼音與中文漢字的轉(zhuǎn)換操作實(shí)現(xiàn)技巧,需要的朋友可以參考下2017-07-07
jquery瀏覽器滾動加載技術(shù)實(shí)現(xiàn)方案
Google閱讀器上有一個(gè)AJAX效果很不錯(cuò),就是閱讀項(xiàng)目時(shí)不需要翻頁,瀏覽器滾動條往下拉到一定位置時(shí)自動加載新的一批項(xiàng)目進(jìn)來,一直到所有項(xiàng)目加載完為止。對于我來說再好不過了,因?yàn)槲液懿幌矚g翻頁,尤其是輸入頁碼再定位到頁。2014-06-06
jquery實(shí)現(xiàn)圖片上傳之前預(yù)覽的方法
這篇文章主要介紹了jquery實(shí)現(xiàn)圖片上傳之前預(yù)覽的方法,涉及jquery針對圖片及頁面元素的相關(guān)操作技巧,具有一定參考借鑒價(jià)值,需要的朋友可以參考下2015-07-07
一個(gè)jquery實(shí)現(xiàn)的不錯(cuò)的多行文字圖片滾動效果
本節(jié)與大家分享的多行文字圖片滾動效果,基于jquery實(shí)現(xiàn),比較實(shí)用,有喜歡的朋友可以收藏下2014-09-09
jQuery之$(document).ready()使用介紹
學(xué)習(xí)jQuery的第一件事是:如果你想要一個(gè)事件運(yùn)行在你的頁面上,你必須在$(document).ready()里調(diào)用這個(gè)事件2012-04-04

