Replies: 1 comment
-
At the low level, you can create your rule and pass it to the selector const rule = editor.Css.addRules(`.card:hover img { ... }`)[0];
editor.Selectors.select(rule); This will allow you to edit the specific rule on the Style Manager level |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Probably not the best title... this is what I mean.
Suppose I have a card with an image and some content inside (a title and a paragraph)
and I want to apply some effect to the image when the card is hovered
in regular CSS i would just write:
.card:hover > img{...}
Is there a way to do this kind of stuff with GrapesJs?
Beta Was this translation helpful? Give feedback.
All reactions