Post by Dhruvin Deshpande

Day 4/5 - Animated Toggles by Dhruvin Deshpande

Animation in Motion and Tailwind


At the start I thought of using `layoutId` for the transition of `Month • Annual` but midways I realized I can improve the performance by just using just scale.


Used `layoutId` only for the tabs.


Was super fun recreating this!

Your upvotes and feedback are welcome!

Words have more power than we think. Be kind.