"Chat form"
Bootstrap 4.1.1 Snippet by mylastof

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
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/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 class="row">
<div class="wrapper">
<div class="contact-form-page">
<div class="form-head">
<div class="header-btn">
<a class="top-btn" href="#"><i class="fa fa-times"></i></a>
</div>
</div>
<h1>Please fill the form - I will response as fast as I can!</h1>
<form>
<div class="form-group">
<label for="exampleInputText">Name</label>
<input type="text" class="form-control" required="required">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Email</label>
<input type="email" class="form-control" id="exampleInputEmail1" required="required">
</div>
<div class="form-group">
<label for="exampleInputMessage">Message</label>
<textarea class="form-control" rows="3" required="required"></textarea>
</div>
<button type="submit" class="submit-buttom">Send</button>
</form>
</div>
<a class="buttom-btn" href="#"><i class="fa fa-times"></i></a>
</div>
</div>
</div>
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
.contact-form-page{
height: 50px;
width: 50px;
display: block;
border-radius: 50%;
position: absolute;
bottom: 42px;
right: 42px;
overflow: hidden;
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
background: #7EC6E7;
}
.show-profile{
background: #3aa8db;
height: 100%;
display: block;
width: 336px;
bottom: 0;
right: 0;
position: absolute;
overflow-y: scroll;
border-radius: 0;
padding-bottom: 30px;
}
.form-profile-img{
float: left;
}
.form-profile-img img{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
$( document ).ready(function() {
$(".buttom-btn").click(function(){
$(".top-btn").addClass('top-btn-show');
$(".contact-form-page").addClass('show-profile');
$(this).addClass('buttom-btn-hide')
});
$(".top-btn").click(function(){
$(".buttom-btn").removeClass('buttom-btn-hide');
$(".contact-form-page").removeClass('show-profile');
});
})
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: