Refactor animation logic
Update dist files