Open Cerchie opened 1 year ago
Yeah the added 0
to a string value is a odd behaviour, but V3 does't expect non numerical value within an animation.
I might change that in V4, and also allow to "animate" values like 'display'
or 'visibility'
.
Currently in V4 you can use a timeline for that, since timeline.set(target, { innerHTML: 'som text' })
works.
Note: Previously reported in issue #710
I don't think this is a bug since
innerHTML
was not designed with non-numeric values in mind, but it's a feature that would be helpful: the ability to set an element's inner HTML with non-numeric values from a keyframe, like so:Currently,
anime.js
adds a zero to whatever content I attempt to add to innerHTML.Example: If I try to set an
innerHTML
of 'Location' I see a zero tacked to the end.To reproduce:
(scroll down to where you can see the animation with the zero)