Refactor animation

Refactored animation to be its own component.
Fixed css so that frontside and backside of card don't have interaction bleed through