You can buy this project and download/modify it how often you want.
Clip and mask with geometry updates Clip and mask with geometry updates (click on all shapes and see maskClipUpdateRef.svg) objectBoundingBox userSpaceOnUse <clipPath> <mask> Done