Refactored animation

out of js, into css