Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[suggestion] manual trigger class #172

Open
zecar opened this issue Mar 29, 2019 · 2 comments
Open

[suggestion] manual trigger class #172

zecar opened this issue Mar 29, 2019 · 2 comments

Comments

@zecar
Copy link

zecar commented Mar 29, 2019

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?

@chinchang
Copy link
Owner

You'll need to toggle the hint position classes also.
I tried creating a demo for you -> https://codepen.io/chinchang/pen/NmKbMB
Let me know if it works for you.

@zecar
Copy link
Author

zecar commented Apr 3, 2019

@chinchang yes, of course that works. But as I said, I don't want to sacrifice animation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants