Framer Motion
Here you will find the information on how we used animations from this library.
Credits
All the base examples of the animations and overall how this work you can find on their official documentation here.
In this block we just briefly take a look how this animation set in our project.
Requirement
First of all we need to install package:
Example
In file we import:
N.B. AnimatePresence not always necessary.
Base usage on example in Lead Statuses Settings:
or more complicated example just lower in the code:
From this example we can understand that render switches on display based on different conditions. Animation make experience of UI usage more smooth.
Helpers
You may notice this thing in component code:
Such code you can find in .../ui/src/common/animationVariants/
As you can see, in that folder we stores other animation variants.
Just go there and try it!
Last updated