Skip to content

How to Implement Hover CSS on elements in Custom CSS? #5006

Answered by mikesealey
CosmasSC128 asked this question in Help
Discussion options

You must be logged in to vote

@tw02d008

This can be done with an Embed component, and some clever use of your browser's developer tools.

In your published app, using the developer tools, find the element you wish to apply the on-hover rules to, and take the classes...

You can then use one of those classes to target your element with a :hover rule, inside some <style></style> tags

For good measure, in the screenshot below I brought all classes and pasted them into a comment. There may be some trial-and-error involved

Here's an app-export where I sketched this one out, please feel free to take a closer look.
CSS On Hover-export-1740569902219.tar.gz

If you're not sure how to import an app, take a look at our documentation

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@NicolasFabre81
Comment options

@tw02d008
Comment options

Comment options

You must be logged in to vote
1 reply
@tw02d008
Comment options

Answer selected by mikesealey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants