refactor(switch): use animation mixin for css transitions
refactor(switch): use animation mixin for css transitions

PiperOrigin-RevId: 447563056

material-components/material-web,material-components/material-web