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