Creating a toggle drawer with animation

Hi.
As shown in the image, I am trying to make a drawer. I made two variants and applied toggleVariant on icon. It is toggling fine.
My questions are:

  1. is this the right way to do it?
  2. how can i add animation on load to the drawer. I want it to slide in the view in fractions