Animated color in Fabric.js
Love the fabric and try to handle it all.
First I created a text like this:
newtext = new fabric.Text('EUI', {
fontFamily: 'UbuntuL',
fontSize: 70,
fill: '#555',
selectable: false,
});
canvas.add(newtext);
But, it cannot change color with animation:
newtext.animate({
fill:'#f00',
}, {
duration: 3000,
easing: fabric.util.ease.easeOutCubic,
onChange: canvas.renderAll.bind(canvas),
});
Can someone please explain?
thank
+3
source to share
1 answer
In this Google group, a user explains that:
color animation is not yet implemented in fabric.js file
So the only thing you can do is implement something to animate the color yourself.
+1
source to share