I want an svg object to fade from color 'A' to color 'B' then back to color 'A' indefinitely.
Thus far I have had limited success using
<animate attributeName="fill" from="colorA" to="colorB" dur="10s" repeatCount="indefinite" />
But this doesn't allow me to fade back to color 'A'.
Any help would be appreciated.
You could use a custom css animation to achieve this:
Just apply the
animation
property to whatever element you want to have the fill change http://jsfiddle.net/re8tn1o3/Use the
values
attribute instead offrom
andto
.