forked from: How to resize and align an animation?

