I'm displaying three hexagons. I want one to change red-to-green, the next green-to-blue, the third blue-to-red.
They all change red-green-blue-red.
<svg width="200px" height="200px" viewBox="0 0 200 200" version="1.1"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<g id="hxg"> <polygon points="15,-26, 30,0, 15,26, -15,26, -30,0, -15,-26" /> </g>
</defs>
<use xlink:href="#hxg" x="35" y="100" style="fill: #ff0000;">
<animate xlink:href="#hxg" attributeName="fill" attributeType="CSS"
from="#ff0000" to="#00ff00" begin="0s" dur="2s" fill="freeze" />
</use>
<use xlink:href="#hxg" x="100" y="100" style="fill: #00ff00;">
<animate xlink:href="#hxg" attributeName="fill" attributeType="CSS"
from="#00ff00" to="#0000ff" begin="2s" dur="2s" fill="freeze" />
</use>
<use xlink:href="#hxg" x="165" y="100" style="fill: #0000ff;">
<animate xlink:href="#hxg" attributeName="fill" attributeType="CSS"
from="#0000ff" to="#ff0000" begin="4s" dur="2s" fill="freeze" />
</use>
</svg>
I've tried <animate> and <animateColor>,
I've tried attributeType="CSS" and ="XML"
Can anyone tell me what I'm doing incorrrectly.
Thanks, JimJ