jQuery addClass example

Change class name on click in jQuery

by ilyasnone

HTML

<script src="https://www.jqueryscript.net/demo/Awesome-Text-Rotator-Plugin-With-Smooth-Transitions-textition/textition.js"></script>

<div id="demo">
<p>Connect the Dots with <br> Research & Analytics</p>
<p><span>Accurate Data</span> with <span>Relevant Context</span> and <span>Precise Analytics</span> help you make <span>Better Decisions</span></p>
</div>

CSS

#demo{width:340px;}
p{font-size:24px; font-weight:bold;}

JavaScript

$(function() {
$('#demo').textition({
map: {x: 100, y: 100, z:0},
perspective: 30,
speed: 2,
animation: 'ease',
autoplay: true,
interval: 4
})
});