Tooltip Direction* - (exactly one direction is required for the tooltip to display)
data: top
data: bottom
data: right
data: left
class: top
class: bottom
class: right
class: left
data: top-left
data: top-right
data: bottom-left
data: bottom-right
class: top-left
class: top-right
class: bottom-left
class: bottom-right
[class*="cooltipz"] check
class: top
class: bottom
class: right
class: left
class: top-left
class: top-right
class: bottom-left
class: bottom-right
No Animation
Animations can be disabled by apply the data-cooltipz-static attribute or the .cooltipz--static class. Cooltipz.css also use the prefers-reduced-motion media query, so when the user's preferences indicate reduced motion, Cooltipz.css automatically disables animation.
data: top
data: bottom
data: right
data: left
class: top
class: bottom
class: right
class: left
data: top-left
data: top-right
data: bottom-left
data: bottom-right
class: top-left
class: top-right
class: bottom-left
class: bottom-right
Always Visible
You can add the data-cooltipz-visible attribute or the .cooltipz--visible class to make the tooltip always show, even if the user isn't hovering or focusing it.
You can make the tooltips show programatically by using the setAttribute() JavaScript function .
data: top
data: bottom
data: left
data: right
class: top
class: bottom
class: left
class: right
data: bottom-left
data: bottom-right
data: top-left
data: top-right
class: bottom-left
class: bottom-right
class: top-left
class: top-right
Sizes
data: fit
data: small
data: medium
data: large
class: fit
class: small
class: medium
class: medium
Content
Should support HTML special characters , emojis , multilingual , Font Awesome .
Font Awesome
HTML special characters
Emojis
Multilingual
Customisation
Expose 16 CSS variables: --cooltipz-bg-color, --cooltipz-border-width, --cooltipz-border-style, --cooltipz-border-color, --cooltipz-text-color, --cooltipz-font-size, --cooltipz-slide, --cooltipz-border-radius, --cooltipz-timing, --cooltipz-cursor, --cooltipz-small, --cooltipz-medium, --cooltipz-large, --cooltipz-arrow-size, --cooltipz-delay-show, --cooltipz-delay-hide.
Custom
Custom
Custom
Custom
Custom
Custom
Custom
Custom
Examples - use these to create a gif
Left
Top
Bottom
Right
Bottom left
Top left
Top right
Bottom right
Small
Medium
Large
Fit
No animation
Visible
Custom small
Custom medium
Custom large
Custom