Have a look at this really cool switching micro-interaction animation for radio buttons designed by Dronca Raul. The active and non-active radio buttons swap when you click on them.
If you are having trouble with the pen, try the archived copy on GitHub
See the Pen
Radio Buttons Interaction ✨ by Dronca Raul (@rauldronca)