How animation between styles can be applied?