jQuery實現綵帶延伸效果的網頁載入條loading動畫,jqueryloading

來源:互聯網
上載者:User

jQuery實現綵帶延伸效果的網頁載入條loading動畫,jqueryloading

本文執行個體講述了jQuery實現綵帶延伸效果的網頁載入條loading動畫。分享給大家供大家參考,具體如下:

這裡介紹的jQuery綵帶效果網頁載入條動畫,我覺得挺有創意的,雖然難度不算大,但能想到用這樣一個背景來做Loading載入條,也實屬不易,不服氣的,你為什麼就沒有想到這樣做呢?本網頁載入條效果使用了jQuery外掛程式。

運行效果如下:

線上示範地址如下:

http://demo.jb51.net/js/2015/jquery-n-color-cha-web-loading-demo/

具體代碼如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>頁面初載入的動畫</title><style type="text/css">body{margin:0;}.top_bg{height:5px;width:0;background-color:#093; background-image:url(images/colorbg.png);}/*如果你喜歡博主的那個綵帶背景歡迎下載,直接把background:#f03換成背景*/</style><script src="jquery-1.7.2.min.js" type="text/javascript"></script><script type="text/javascript">$(document).ready(function(){   //頂部背景動畫   $(".top_bg").animate({    width: "100%"   },   {    queue: false,    duration:4000   }); })</script></head><body> <div class="top_bg"></div></body></html>

希望本文所述對大家jQuery程式設計有所協助。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.