The tooltip can be displayed in different orientations, and two of them can be combined to align the tooltip with the edges.
In order to keep the code as small as possible, you won't find animations here, but you can easily create them with CSS variables.