Add Your Heading Text Here

var isLast = function(word) { return $(word).next().length > 0 ? false : true; } var getNext = function(word) { return $(word).next(); } var getVisible = function () { return document.getElementsByClassName('is-visible'); } var getFirst = function() { var node = $('.words-wrapper').children().first(); return node; } var switchWords = function(current, next) { $(current).removeClass('is-visible').addClass('is-hidden'); $(next).removeClass('is-hidden').addClass('is-visible'); } var getStarted = function() { //We start by getting the visible element and its sibling var first = getVisible(); var next = getNext(first); //If our element has a sibling, it's not the last of the list. We switch the classes if (next.length !== 0) { switchWords(first,next); } else { //The element is the last of the list. We remove the visible class of the current element $(first).removeClass('is-visible').addClass('is-hidden'); //And we get the first element of the list, and we give it the visible class. And it starts again. var newEl = getFirst(); $(newEl).removeClass('is-hidden').addClass('is-visible'); } } var init = function() { setInterval(function() {getStarted()}, 2000); } init(); @import url(https://fonts.googleapis.com/css?family=Roboto); } .text { position: absolute; top: 40%; left: 40%; color:#035ca4; } .words-wrapper { display: inline-block; position: relative; text-align: left; b { opacity:0; display: inline-block; position: absolute; white-space: nowrap; left: 0; top: 0; } .is-visible { position:relative; opacity:1; -webkit-animation: push-in 0.6s; -moz-animation: push-in 0.6s; animation: push-in 0.6s; } .is-hidden { -webkit-animation: push-out 0.6s; -moz-animation: push-out 0.6s; animation: push-out 0.6s; } } @-webkit-keyframes push-in { 0% { opacity: 0; -webkit-transform: translateX(-100%); } 70% { opacity: 1; -webkit-transform: translateX(10%); } 100% { opacity: 1; -webkit-transform: translateX(0); } } @-moz-keyframes push-in { 0% { opacity: 0; -moz-transform: translateX(-100%); } 60% { opacity: 1; -moz-transform: translateX(10%); } 100% { opacity: 1; -moz-transform: translateX(0); } } @keyframes push-in { 0% { opacity: 0; -webkit-transform: translateX(-100%); -moz-transform: translateX(-100%); -ms-transform: translateX(-100%); -o-transform: translateX(-100%); transform: translateX(-100%); } 60% { opacity: 1; -webkit-transform: translateX(10%); -moz-transform: translateX(10%); -ms-transform: translateX(10%); -o-transform: translateX(10%); transform: translateX(10%); } 100% { opacity: 1; -webkit-transform: translateX(0); -moz-transform: translateX(0); -ms-transform: translateX(0); -o-transform: translateX(0); transform: translateX(0); } } @-webkit-keyframes push-out { 0% { opacity: 1; -webkit-transform: translateX(0); } 60% { opacity: 0; -webkit-transform: translateX(110%); } 100% { opacity: 0; -webkit-transform: translateX(100%); } } @-moz-keyframes push-out { 0% { opacity: 1; -moz-transform: translateX(0); } 60% { opacity: 0; -moz-transform: translateX(110%); } 100% { opacity: 0; -moz-transform: translateX(100%); } } @keyframes push-out { 0% { opacity: 1; -webkit-transform: translateX(0); -moz-transform: translateX(0); -ms-transform: translateX(0); -o-transform: translateX(0); transform: translateX(0); } 60% { opacity: 0; -webkit-transform: translateX(110%); -moz-transform: translateX(110%); -ms-transform: translateX(110%); -o-transform: translateX(110%); transform: translateX(110%); } 100% { opacity: 0; -webkit-transform: translateX(100%); -moz-transform: translateX(100%); -ms-transform: translateX(100%); -o-transform: translateX(100%); transform: translateX(100%); } }

Hello, I'm Jayaraj
I'm here to
Design and conduct proper appraisals Manage your HR completely Setup HR Policies and processes Advice on statory compliances

[fieldset][bbutton url=”https://www.kraniumhr.com/request-a-meeting/” tagline=”Click here to mail us” bg=”309bc9″ style=”1″] I am Interested [/bbutton][/fieldset]

Leave a Reply

Your email address will not be published. Required fields are marked *