Fixed janky CSS animations