"Onclick text write, chatting,"
Bootstrap 3.3.0 Snippet by sumi9xm

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
<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="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<section id="chatting-area">
<div class="container">
<div class="row">
<div class="col-sm-offset-2 col-sm-8">
<div class="wrap">
<ol class="que-list">
<li>
<div class="test" data-text="Augue ac adipiscing quis, arcu auctor! Elementum. Non vel vel augue odio et in et est, integer, porta sed parturient rhoncus habitasse! "></div>
</li>
</ol>
</div>
</div>
</div>
<div class="btn-wrap">
<div class="btn-area">
<button href="#" class="start " id="btn-1">Click </button>
<button href="#" class="start btn-2">Click </button>
</div>
</div>
</div>
</section>
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(http://fonts.googleapis.com/css?family=Cutive+Mono);
body {
font: 16px/20px 'Cutive Mono', serif;
}
#chatting-area{
width:100%;
height:auto;
position:relative;
padding:50px 0px;
background-attachment: fixed;
background-image:url(../img/key-2114046_1920.jpg);
background-repeat: no-repeat;
min-height:670px;
background-position: top center;
}
.wrap {
width: 500px;
text-align: left;
}
.test {
text-align: left;
}
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
$(document).ready(function(){
function typeWriter(text, n) {
if (n < (text.length)) {
$('.test').html(text.substring(0, n+1));
n++;
setTimeout(function() {
typeWriter(text, n)
}, 100);
}
}
$('.start').click(function(e) {
e.stopPropagation();
var text = $('.test').data('text');
typeWriter(text, 0);
});
});
$(document).ready(function(){
$(".que-list>li").css({"display": "none"});
$(".start").click(function(){
$(".que-list>li").fadeIn(800);
$(this).siblings('button').hide();
$(".start").animate({marginLeft: "+=150px", marginTop: "-=100px"});
$(".start").css({"position": "fixed", top: "200px"});
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: