Hint

Hint is built with pure css code. It can be apply on any elements who's overflow is not hidden and position is not undefined.

Basic

<button class="btn hint" data-hint="I'm always here!">Hover Me</button>

Sizing

By default, Hint will always remain single-line. you can change this behavior by adding .hint--sm or .hint--lg modifier class.

<button class="btn hint hint--sm" data-hint="Lorem ipsum dolor sit amet.">Small sizing</button>
<button class="btn hint" data-hint="Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nulla, ratione!">Normal sizing</button>
<button class="btn hint hint--lg" data-hint="Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem architecto, illo recusandae dolorem magni odit.">Large sizing</button>

Position

Hint use top as default position. By adding .hint--right, .hint--bottom or .hint--left modifier class to change hint position.

<button class="btn hint" data-hint="Hello, There!">Hover me!</button>
<button class="btn hint hint--right" data-hint="Hello, There!">Hover me!</button>
<button class="btn hint hint--bottom" data-hint="Hello, There!">Hover me!</button>
<button class="btn hint hint--left" data-hint="Hello, There!">Hover me!</button>