css - Circle text with jquery animation -


i have tried circle texts jquery animation. working fiddle is:

http://jsfiddle.net/60rz99zu/5/

$(function () { $('.main-content').circletype({radius: 1000});      var $els = $('div[id^=quote]'),         = 0,         len = $els.length;         $els.slice(1).hide();         setinterval(function () {             $els.eq(i).fadeout(function () {             = (i + 1) % len             $els.eq(i).fadein();         })     }, 2000) }) 

the first text working good. see second , third text. circle effect messed. spent more time fix. couldn't. how can achieve this??

the problem since elements hidden, circle plugin not able findout dimensions properly.

so 1 solution hide them after initiazing library

<div id="quote1" class="text-center main-content">first text here</div> <div id="quote2" class="text-center main-content">second text here</div> <div id="quote3" class="text-center main-content">third text here</div> 

demo: fiddle


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -