HTML5 Add a practical multi-layered picture visual difference Interactive Effect Plugin Tutorial

Source: Internet
Author: User

I. Methods of Use
<script src= "Js/jquery.min.js" ></script>
<script src= "Dist/jquery.parallaxmouse.min.js" ></script>


Second, HTML structure
<div id= "Galaxy" >



</div>

Third, CSS
#galaxy {
width:100%;
height:400px;
max-height:400px;
position:relative;
Background: #2f2f6d;
Overflow:hidden;
}

#star1 {
Position:absolute;
top:150px;
left:200px;
}

#star2 {
Position:absolute;
top:150px;
right:200px;
}

#star3 {
Position:absolute;
bottom:150px;
right:200px;
}

Iv. Initializing Plugins
JQuery (window). Parallaxmouse ({
Invert:true,
range:400,
ELMS: [
{el: $ (' #star1 '), rate:0.2},
{el: $ (' #star2 '), rate:0.4},
{el: $ (' #star3 '), rate:0.1},
]
});


Keymob Mobile advertising Platform is a regular Music Network Co., Ltd. in 2014 to create a focus for advertisers to provide accurate mobile marketing ads for efficient optimization management. Keymob Mobile advertising platform has strong technical support, a full range of professional services. With the most innovative form of advertising to bring advertisers the best quality service!

HTML5 Add a practical multi-layered picture visual difference Interactive 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.