chinchang / hint.css

A CSS only tooltip library for your lovely websites.

Home Page:https://kushagra.dev/lab/hint/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New feature hint--timeout

wikiro opened this issue · comments

commented

I want to show hint after 500 ms.

If you want to do it the quick way, here is something you can append to your copy of hint.css file:

.hint--timeout:before, .hint--timeout:after {
  -webkit-transition-delay: 500ms;
  -moz-transition-delay: 500ms;
  transition-delay: 500ms;
}
commented

Thanks! What about hide hint in 1 sec and what about default properties whithout "--timeout"?

.hint--timeout:before, .hint--timeout:after {
  -webkit-transition-delay: 1000ms;
  -moz-transition-delay: 1000ms;
  transition-delay: 1000ms;
}
.hint--timeout:hover:before, .hint--timeout:hover:after {
  -webkit-transition-delay: 500ms;
  -moz-transition-delay: 500ms;
  transition-delay: 500ms;
}

Above code will make tooltip appear in 500ms and hide in 1000ms. This will apply to elements having hint--timeout class only. Rest other tooltips will function normally.

commented

Great! Thanks!

Thanks, this is very useful!