"Parallax Login Form"
Bootstrap 3.0.3 Snippet by msurguy

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <script src="http://mymaplist.com/js/vendor/TweenLite.min.js"></script> <!-- This is a very simple parallax effect achieved by simple CSS 3 multiple backgrounds, made by http://twitter.com/msurguy --> <div class="container"> <div class="row vertical-offset-100"> <div class="col-md-4 col-md-offset-4"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Please sign in</h3> </div> <div class="panel-body"> <form accept-charset="UTF-8" role="form"> <fieldset> <div class="form-group"> <input class="form-control" placeholder="E-mail" name="email" type="text"> </div> <div class="form-group"> <input class="form-control" placeholder="Password" name="password" type="password" value=""> </div> <div class="checkbox"> <label> <input name="remember" type="checkbox" value="Remember Me"> Remember Me </label> </div> <input class="btn btn-lg btn-success btn-block" type="submit" value="Login"> </fieldset> </form> </div> </div> </div> </div> </div>
body{ background: url(http://mymaplist.com/img/parallax/back.png); background-color: #444; background: url(http://mymaplist.com/img/parallax/pinlayer2.png),url(http://mymaplist.com/img/parallax/pinlayer1.png),url(http://mymaplist.com/img/parallax/back.png); } .vertical-offset-100{ padding-top:100px; }
$(document).ready(function(){ $(document).mousemove(function(e){ TweenLite.to($('body'), .5, { css: { backgroundPosition: ""+ parseInt(event.pageX/8) + "px "+parseInt(event.pageY/'12')+"px, "+parseInt(event.pageX/'15')+"px "+parseInt(event.pageY/'15')+"px, "+parseInt(event.pageX/'30')+"px "+parseInt(event.pageY/'30')+"px" } }); }); });

Related: See More


Questions / Comments:

Didn't worked with Firefox 32.0.3.

Hadi (0) - 3 years ago - Reply 1


why dont work in firefox?

bbb (0) - 1 year ago - Reply 0


how to download this script ?

Razqa Lathif (0) - 1 year ago - Reply 0


dont work at all
image not found

kir (0) - 2 years ago - Reply 0


how to make this background images without jQuery ... is it possible with angular custom directive to do this ??? plz reply me ???

Amaad (0) - 3 years ago - Reply 0


Thank you. the most beautiful login form

_j (0) - 3 years ago - Reply 0


Images from http://mymaplist.com site are not accessible any more

Alfredo Ponce Zarate (0) - 3 years ago - Reply 0


Images from http://mymaplist.com site are not accessible any more ?

Pedja (0) - 3 years ago - Reply 0


Images from http://mymaplist.com site are not accessible any more

Alfredo Ponce Zarate (0) - 3 years ago - Reply 0


how can i use this in asp.net c#?

Aesha Bhavsar (0) - 3 years ago - Reply 0


Hello, thanks for the script. To me started to work on all browsers with the following change:

$(document).ready(function(){

$(document).mousemove(function( event ) {

TweenLite.to($('body'),

.5,

{ css:

{

backgroundPosition: ""+ parseInt(event.pageX/8) + "px "+parseInt(event.pageY/'12')+"px, "+parseInt(event.pageX/'15')+"px "+parseInt(event.pageY/'15')+"px, "+parseInt(event.pageX/'30')+"px "+parseInt(event.pageY/'30')+"px"

}

});

});

});

Jose (0) - 4 years ago - Reply 0


Thank you! I have updated the snippet with your fix, hopefully it will work in all browsers now :)

maxsurguy (0) - 4 years ago - Reply 0


Tested in FF 26 and FF 27.0 and it doesn't Work :/

DEE (0) - 4 years ago - Reply 0


Hummmm.... Firefox... T_T

Giancarlo Ventura Granados (0) - 4 years ago - Reply 0


dont work in firefox

Mico (0) - 4 years ago - Reply 0


It works for me FF 26.0. How is it not working, how does it behave?

Z (0) - 4 years ago - Reply 0


awesome man! thanks sharing!

Ameenullah (0) - 4 years ago - Reply 0


great work ! btw , i think it's better if offered with more background image choice .

Jason.H (0) - 4 years ago - Reply 0


what do you think would be a good choice?

maxsurguy (0) - 4 years ago - Reply 0


Hey max! Awesome job. But is there a way that allows me to pick whatever image I want? Thank you!

Rodrigo Cordeiro (0) - 2 years ago - Reply 0


@maxsurguy:disqus hey man, great job. however, i have issue on Firefox. anyone else having same thing?

Wiki Chua (0) - 4 years ago - Reply 0


Really NICE!

Kraymer (0) - 4 years ago - Reply 0


As usual great one Max!How did you create that flip effect of this form in mymaplist .

Pratik Shah (0) - 4 years ago - Reply 0


I bought a CSS/JS script on envato but you can see this one that I created that is almost as good: http://codepen.io/msurguy/p...

maxsurguy (0) - 4 years ago - Reply 0


excellent work

Safry (0) - 4 years ago - Reply 0


nice, really thanks

Yoza Wiratama (0) - 4 years ago - Reply 0


Creative mind! very nice

Tim (0) - 4 years ago - Reply 0


crafted by a professional! (Y)

Kanuni Sulayman (0) - 4 years ago - Reply 0


Nice job, dude!

webmagisters (0) - 4 years ago - Reply 0


Thanks!

maxsurguy (0) - 4 years ago - Reply 0


superb!!!

Milan Rawal (0) - 4 years ago - Reply 0


(y)

Ankhi (0) - 4 years ago - Reply 0