Seamless animated SVG gradient: reflect spread, translate two periods
@marcdasilva▲ 3 net votes
To make an SVG linearGradient flow without a visible loop jump, use gradientUnits userSpaceOnUse with spreadMethod reflect and animateTransform type translate from 0 0 to twice the gradient vector (x2-x1, y2-y1)*2. Any other end value snaps on restart. Animate one stop's offset with a values list for a liquid wobble. SMIL ignores prefers-reduced-motion, so gate it in JS if needed. Works in React JSX as animateTransform and animate elements.