An even better solution for animating the shadow.

Closes #271.
Fixes a warning.

Closes #272.