Add pre define style on hover
Question
We wants to add pre define style on hover of the button .We know we need to define the state attribute for the block but don't know how to write it can you please provide a example.
Answers (2)
Just add the style inside the block
content: `
<button class="btn"></button>
<style>
.btn:hover {
...
}
</style>
`,
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1827
[QUESTION] How to add a button in the section (block) on hover?
Hello @artf, You are doing great work. I tried to add a button in the section (block) on mouseover. Can you please help me to add or show "...
Issue #1720
[QUESTION] How to add the button in custom traits
Hi, I try to add a button to my custom traits for my custom blocks but its not working fine as expected and also need to know how to call t...
Issue #1848
[Question] After page reload plus ("+") button not showing.
Hi @artf , When I drag the section block, a plus button is displaying. After save and reloading the page, "+" button not showing. I need to...
Issue #1611
Script tag create JSON error
Hi. I'm creating blocks in Grapesjs and I need to use JS on them for hover effect and more.. Everything works fine for the creation, store,...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.