Refactor faint animation