Archived topic
SGV hoover effect
3 replies · Started by Rostyslav on April 11, 2021
Hello,
I designed an SVG map in illustrator and on this page I converted it to inline SVG: https://jakearchibald.github.io/svgomg/
I want to add a hover effect on that map on my site. I added a container block and inside the HTML block.
So now I don't know what HTML code to use.
Can you help to solve it?
Thanks!
Hi there,
Not sure if I fully understand.
What hover effect are you trying to achieve?
Please keep in mind that providing custom solution that aren't directly related to GP is out of the scope of this forum:
https://generatepress.com/what-support-includes/
html
<a class="logo-link" href="*******" title="******" rel="home">
<!-- SVG Code in here -->
</a>
css
.logo-link:hover svg {
}
Is this code correct for adding hover to an SVG?
You can give that a shot first.
Perhaps an article like this would help as well:
https://css-tricks.com/the-many-ways-to-change-an-svg-fill-on-hover-and-when-to-use-them/