Tooltip
A tooltip is a contextual message that appears when users interact with an element, providing additional information or guidance.
Example
Illustrates the animations that happen when the Tooltip component enters and exits from view. You can see an animated example of this component here.
Enter transition
When a tooltip enters view, it moves 4px away from the point where it was activated at 200ms. It can move down, up, left or right depending on its ending position.
| Property | Cubic Bezier | Easing token | Notes |
|---|---|---|---|
| Translate X or Y | (.45, 0, .55, 1) | $easing-functional | Moves away 4px from point of activation at 200ms |
| Opacity | (.45, 0, .55, 1) | $easing-functional | Tooltip gently fades into view at 200ms |
Exit transition
When a tooltip exits view, it moves 4px towards the point where it was activated at 150ms. It can move down, up, left or right depending on its starting position. Exit transitions are always quicker than entry.
| Property | Cubic Bezier | Easing token | Notes |
|---|---|---|---|
| Translate X or Y | (.45, 0, .55, 1) | $easing-functional | Moves 4px towards point of activation at 150ms |
| Opacity | (.45, 0, .55, 1) | $easing-functional | Tooltip gently fades out of view at 150ms |