-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text not animatable #2
Comments
you call Or bette for the sake of this example just remove the empty |
Thanks @Fuzzyma. I can finally see some exclamation marks on my page after I removed This still throws the error though: var text = draw.morphText('!').font({
family: this,
size:72,
});
text.animate().text('!!!!!'); |
Given that this is no browser error message you can search for the string in the code and will soon hit the line were the error is thrown. text: function(glyphs){
if(!this.target().glyphs) throw 'Text not animatable'
// ...
} That means the text you try to animate was not correctly rendered with This plugin is still far from ready for production. Its more like a playground to see whats possible. I am curious: Whats your usecase? |
Thanks for the insights. I would like to animate paths from glyphs from a slightly edited font ( in Illustrator ) to spice up some of the graphical elements on the pages I'm working on. End goal would be:
Does this make sense or is there another way to achieve this? |
I think in your case (you dont need that much chars) it would be easier to directly animate paths. However, you can use the svg.pathmorphing.js to make svg.js capable of path morphing (this is used by this plugin, too). You can then just morph the glyph paths from a to b. Just remember to flip the glyphs (y axis is wrong) and scale them. Would be cool, to have your your example in a jsfiddle to find the issue. When you have some time for that I would be glad. I wanted to rework this plugin anyway. Its way to old |
Hello
I can't figure out how to animate my SVG font which I exported from Illustrator.
This is a relevant piece of my javascript:
Here is the contents of the SVG file:
The error I get in Safari's console is:
Text not animatable
.The text was updated successfully, but these errors were encountered: