I'm working on a hamburger navigation bar icon that changes from a hamburger to a minus when clicked. The state logic for this functionality is using a setState function within the NavToggle component (button) like so:
<NavToggle onClick={() => setToggle(!toggle)}><Icon icon={toggle ? faBars : faMinus}></Icon></NavToggle>
Currently, the change between icons is very abrupt and I'm looking for a way to implement a smoother transition. I haven't been able to come up with a simple solution for fading in between these two icons.