Comments (7)
I can corroborate svinkle's issue. There's something wonky with the 'fade' transition. I'll try and take a look later.. might commit if I can spot the issue.
from simple-text-rotator.
If I add a console trace I get double figures being traced back... it appears as though sometimes the setInterval is fired twice and then keeps running like that.
from simple-text-rotator.
Same here. Any solutions yet?
I took a look, it's so clean that I can't find how to fix :)
from simple-text-rotator.
Ok I found a solution for this issue. The setInterval on line 162 fires at the exact same time as the fade animation and that causes the counter to incrememnt twice.
Online 162, replace the setInterval... bit with this: setInterval(rotateMe, settings.speed*2); // Wait twice as long.
That fixes the fading, at least it did for me..
from simple-text-rotator.
Hi there,
The fadeOut callback runs twice because that callback fires another fadeIn. So just change this part;
el.fadeOut(settings.speed, function() {
index = $.inArray(el.text(), array)
if((index + 1) == array.length) index = -1
el.text(array[index + 1]).fadeIn(settings.speed);
});
with this;
el.fadeOut(settings.speed, function() {
index = $.inArray(el.text(), array)
if((index + 1) == array.length) index = -1
el.text(array[index + 1]);
}).fadeIn(settings.speed);
from simple-text-rotator.
Thanks you for solution!
from simple-text-rotator.
@timucingelici Thank you for this solution. This should be implemented in https://github.com/peachananr/simple-text-rotator/blob/master/jquery.simple-text-rotator.js asap to avoid future confusion
from simple-text-rotator.
Related Issues (20)
- Delay start of rotation
- Rotating text over CSS3 gradient background
- jquery dependency HOT 7
- Conflict with Foundation / Wordpress? HOT 1
- Delay start? And stop on last word? HOT 3
- Conflict with parallax HOT 1
- animate width of the containing span HOT 2
- Keeping anchor tags HOT 2
- PLEASE MAKE THIS CHANGE TO YOUR DOCUMENTATION. Thanks. HOT 2
- Chrome Display Issue HOT 1
- Add package to bower HOT 1
- Add a destroy function HOT 1
- Fade : Text appearing in this array order : 0,2,4,1,3 HOT 1
- flip difference Edge vs Chrome
- Space between words causes strange behaviour when rotating to the next word in orde HOT 1
- Small Issue When Tabbing Out
- Only Odd Items are Show when Fade is Selected as Transition Type HOT 1
- Does not work...
- Suggestion: adding css to class front
- This plugin skips ever other word HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-text-rotator.