Wrap custom effect with animation in source

Fixes https://github.com/web-animations/web-animations-next/issues/107
Probably fixes https://github.com/web-animations/web-animations-js/issues/3