You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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)
The text was updated successfully, but these errors were encountered: