I want to reuse <animate> tags without javascript. Something like that:
<svg> <defs> <animate id="shrink" attributeName="width" from="100%" to="0%" dur="5s" repeatCount="1" fill="freeze" /> </defs> <rect width="100%" height="10%" fill="blue" animate="#shrink"/> </svg>
But all the examples that I find have animation inside the <rect> or they use javascript, etc.
Since you can reuse graphic gradients and masks, is there a way to reuse the <animate> ?
source share