Empty states provide users with feedback on the reasons behind the empty state and what they can do to move out of the empty state.
There are three default animations available to communicate empty states. The scenario for each empty state and animation is shown below:
Empty dataset: There are no elements in the data set at a certain level
Empty search results: The filters or search results return zero results.
Empty state for success: The user has emptied the dataset for a good cause. For example, all the notifications have been addressed, resulting in a clean state.
Animations are used to catch the user's attention, therefore they should only appear once on the screen. In our case, we use these animations in the components that are usually the center of attention and receive the most focus. In less common components, we prefer to avoid the animation and be more discrete.
These attributes are used for an animation:
The margin from the container to the top element is 80px.
Animations shouldn't be used outside a dataset display. In these cases, use a primary button to catch the user's attention. The primary button has these attributes: