chinchang / chinchang/hint.css

[suggestion] manual trigger class

Open
#172 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
CSS
Stars
8.4k
Forks
680
PR merge metrics
No merged PRs in 30d

Description

I'm currently facing a issue with mobile devices

I want to have tooltips automatically disappear after 3 seconds. I'm toggling hint--always with js onClick and after 3 seconds to make it appear/disappear

The problem is that it remains visible because the element is :hovered. I can't have another class toggling the visibility/opacity of after&before because i'm sacrificing the animation

a possible solution would be implementing a .manual class with a toggle .is-hint-active class

any suggestion?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.