textillate
textillate copied to clipboard
class="current"
Downloaded the latest .js, but class="current" appears twice when text animates. Thoughts?
same problem for me... :-/
It's not a good solution... but it works when I comment the line 139 :
$elem.addClass('current');
I've just come across this same issue, any text that is animated will have "class="current">" before the text, driving me crazy
Is anyone able to provide a jsFiddle showing the issue? My test shows the current class only being applied to a single text at a time.
Here's a base fiddle: http://jsfiddle.net/jschr/vzsUd/
same problem for me, but it occurs only if i use a span inside the h1 element
https://github.com/jschr/textillate/issues/6
Same problems when the text to be animated is within p and /p
Works fine in the other cases (I have tested)
@thistlillo are you able to reproduce the issue in a jsfiddle? I tried modifying the one I posted above so that the text is inside a p tag but I still don't see it: http://jsfiddle.net/BHUL4/
Thanks
Yes, I modified your fiddle. I hope it kept the changes: http://jsfiddle.net/BHUL4/2/
Textillate only currently supports animating text, not any html. See https://github.com/jschr/textillate/issues/6. You'll have to wrap the entire container in a p tag similar to the fiddle in my previous post.
Yes, that was the solution I found. Not a big issue actually, but I thought you might find interesting the behaviour in my case. Indeed, thanks for your work.
Thanks. My goal is to support it in a future release.