"Animated Login Screen"
Bootstrap 3.3.0 Snippet by gautampatadiya

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div id="login-box">
<div class="logo">
<img src="http://lorempixel.com/output/people-q-c-100-100-1.jpg" class="img img-responsive img-circle center-block"/>
<h1 class="logo-caption"><span class="tweak">L</span>ogin</h1>
</div><!-- /.logo -->
<div class="controls">
<input type="text" name="username" placeholder="Username" class="form-control" />
<input type="text" name="username" placeholder="Password" class="form-control" />
<button type="button" class="btn btn-default btn-block btn-custom">Login</button>
</div><!-- /.controls -->
</div><!-- /#login-box -->
</div><!-- /.container -->
<div id="particles-js"></div>
<!--<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/particles.js/2.0.0/particles.min.js"></script>-->
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@import url('https://fonts.googleapis.com/css?family=Nunito');
@import url('https://fonts.googleapis.com/css?family=Poiret+One');
body, html {
height: 100%;
background-repeat: no-repeat; /*background-image: linear-gradient(rgb(12, 97, 33),rgb(104, 145, 162));*/
background:black;
position: relative;
}
#login-box {
position: absolute;
top: 0px;
left: 50%;
transform: translateX(-50%);
width: 350px;
margin: 0 auto;
border: 1px solid black;
background: rgba(48, 46, 45, 1);
min-height: 250px;
padding: 20px;
z-index: 9999;
}
#login-box .logo .logo-caption {
font-family: 'Poiret One', cursive;
color: white;
text-align: center;
margin-bottom: 0px;
}
#login-box .logo .tweak {
color: #ff5252;
}
#login-box .controls {
padding-top: 30px;
}
#login-box .controls input {
border-radius: 0px;
background: rgb(98, 96, 96);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
$.getScript("https://cdnjs.cloudflare.com/ajax/libs/particles.js/2.0.0/particles.min.js", function(){
particlesJS('particles-js',
{
"particles": {
"number": {
"value": 80,
"density": {
"enable": true,
"value_area": 800
}
},
"color": {
"value": "#ffffff"
},
"shape": {
"type": "circle",
"stroke": {
"width": 0,
"color": "#000000"
},
"polygon": {
"nb_sides": 5
},
"image": {
"width": 100,
"height": 100
}
},
"opacity": {
"value": 0.5,
"random": false,
"anim": {
"enable": false,
"speed": 1,
"opacity_min": 0.1,
"sync": false
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Its background is not working as u showed me in this

Himanshu Sharma () - 8 years ago - Reply -6


background animation not working

AriyaAgni () - 5 years ago - Reply 0


the background is not working

ajmonis1026 () - 6 years ago - Reply 0


MIght be chance that your JavaScript conflict with each other.

gautampatadiya (-2) - 6 years ago - Reply 0


I think It's my fault so what should I do

mayssagd (-1) - 6 years ago - Reply 0


Try to figure out the problem

gautampatadiya (-2) - 6 years ago - Reply -2


nice

Winnie A Damayo () - 8 years ago - Reply 0