You can buy this project and download/modify it how often you want.
Gradients with geometry updates Gradients with geometry updates objectBoundingBox userSpaceOnUse <linearGradient> <radialGradient>