<div class="static-slider3">
<div class="container">
<!-- Row -->
<div class="row justify-content-center">
<!-- Column -->
<div class="col-md-8 align-self-center text-center">
<h1 class="title">I’m Johanthan Doe, an <b class="font-weight-bold">Entreprenuer, Designer & Front-end Developer</b>, Making <span class="text-success-gradiant font-weight-bold typewrite" data-period="2000" data-type='[ "Photoshop", "Web Application", "Web Designing", "Web Development" ]'></span></h1>
<a class="btn btn-success-gradiant btn-md text-white border-0 mt-3" href=""><span>Checkout My Work</span></a>
</div>
<!-- Column -->
</div>
</div>
</div>
@import url(//fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700,800);
.static-slider3 {
font-family: "Montserrat", sans-serif;
color: #8d97ad;
font-weight: 300;
padding: 10% 0;
}
.static-slider3 h1, .static-slider3 h2, .static-slider3 h3, .static-slider3 h4, .static-slider3 h5, .static-slider3 h6 {
color: #3e4555;
}
.static-slider3 .title {
font-weight: 300;
line-height: 50px;
font-size: 36px;
}
.static-slider3 .title span {
border-bottom: 3px solid #2cdd9b;
}
.static-slider3 .text-success-gradiant {
background: #2cdd9b;
background: -webkit-linear-gradient(legacy-direction(to right), #2cdd9b 0%, #1dc8cc 100%);
background: -webkit-gradient(linear, left top, right top, from(#2cdd9b), to(#1dc8cc));
background: -webkit-linear-gradient(left, #2cdd9b 0%, #1dc8cc 100%);
background: -o-linear-gradient(left, #2cdd9b 0%, #1dc8cc 100%);
background: linear-gradient(to right, #2cdd9b 0%, #1dc8cc 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
text-fill-color: transparent;
}
.static-slider3 .btn-success-gradiant {
background: #2cdd9b;
background: -webkit-linear-gradient(legacy-direction(to right), #2cdd9b 0%, #1dc8cc 100%);
background: -webkit-gradient(linear, left top, right top, from(#2cdd9b), to(#1dc8cc));
background: -webkit-linear-gradient(left, #2cdd9b 0%, #1dc8cc 100%);
background: -o-linear-gradient(left, #2cdd9b 0%, #1dc8cc 100%);
background: linear-gradient(to right, #2cdd9b 0%, #1dc8cc 100%);
}
.static-slider3 .btn-success-gradiant:hover {
background: #1dc8cc;
background: -webkit-linear-gradient(legacy-direction(to right), #1dc8cc 0%, #2cdd9b 100%);
background: -webkit-gradient(linear, left top, right top, from(#1dc8cc), to(#2cdd9b));
background: -webkit-linear-gradient(left, #1dc8cc 0%, #2cdd9b 100%);
background: -o-linear-gradient(left, #1dc8cc 0%, #2cdd9b 100%);
background: linear-gradient(to right, #1dc8cc 0%, #2cdd9b 100%);
}
.static-slider3 .btn-md {
padding: 15px 45px;
font-size: 16px;
}
@media (max-width:767px) {
.static-slider3 .title{
line-height: 30px;
font-size: 24px;
}
}
var TxtType = function(el, toRotate, period) {
this.toRotate = toRotate;
this.el = el;
this.loopNum = 0;
this.period = parseInt(period, 10) || 2000;
this.txt = '';
this.tick();
this.isDeleting = false;
};
TxtType.prototype.tick = function() {
var i = this.loopNum % this.toRotate.length;
var fullTxt = this.toRotate[i];
if (this.isDeleting) {
this.txt = fullTxt.substring(0, this.txt.length - 1);
} else {
this.txt = fullTxt.substring(0, this.txt.length + 1);
}
this.el.innerHTML = ''+this.txt+'';
var that = this;
var delta = 200 - Math.random() * 100;
if (this.isDeleting) { delta /= 2; }
if (!this.isDeleting && this.txt === fullTxt) {
delta = this.period;
this.isDeleting = true;
} else if (this.isDeleting && this.txt === '') {
this.isDeleting = false;
this.loopNum++;
delta = 500;
}
setTimeout(function() {
that.tick();
}, delta);
};
window.onload = function() {
var elements = document.getElementsByClassName('typewrite');
for (var i=0; i