HTML5 Add super fun White cloud flare effect Plugin Tutorial

Source: Internet
Author: User

First, installation
Bower Install Jqlouds--save

Ii. Methods of Use
<script src= "Jquery.js" ></script>
<script src= "Dist/jquery.jqlouds.min.js" ></script>
<div id= "Sky" ></div>
$ (' #sky1, #sky2 '). Jqlouds ();

Third, set the height of the sky
(1) Css
<div id= "Sky" style= "HEIGHT:223PX;" ></div>
<script>
JQuery (function ($) {
$ (' #sky '). Jqlouds ();
});
</script>

(2) Js
<div id= "Sky" ></div>
<script>
JQuery (function ($) {
$ (' #sky '). Jqlouds ({skyheight:223});
});
</script>

Four, white clouds fluttering animation
$ (' #sky '). Jqlouds ({
Wind:true
});

Five, the number of clouds
$ (' #sky '). Jqlouds ({
Minclouds:5,
Maxclouds:10
});

Vi. size of the largest cloud
$ (' #sky '). Jqlouds ({
maxwidth:113,
MAXHEIGHT:48,
});

Seven, custom clouds
$ (' #sky '). Jqlouds ({
SRC: ' path/to/image.png ',
});

Eight, configuration parameters
options={
SRC: ' images/cloud.png ',
maxwidth:227,
Maxheight:96,
MINCLOUDS:20,
Maxclouds:30,
Skyheight:null,
Wind:false
};
$ (' #sky '). Jqlouds (options);

Keymob Mobile Advertising Platform is the most professional and effective mobile advertising platform, is committed to providing advertisers with accurate and efficient brand and application promotion services, while providing application developers with a stable SDK and high-income revenue.

HTML5 Add super fun White cloud flare effect Plugin Tutorial

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.