Wrap custom effect with animation in source

Fixes https://github.com/web-animations/web-animations-next/issues/107
Fixes https://github.com/web-animations/web-animations-js/issues/3
is this used?