Mouse hover over objects

Post questions on how to use or achieve an effect in Inkscape.
Zech
Posts: 43
Joined: Wed Jan 24, 2018 8:38 am

Mouse hover over objects

Postby Zech » Sat Mar 10, 2018 3:46 am

Hi I'm still reading manuals and learning how to use inkscape , and I discovered the XML editor. And I. Found out how to add links to objects. But now I want to do something a little more advanced. It's doesn't seem like it would be a hard thing to do. I just want to find out how to make an object visible by hovering my mouse over another object. I just don't know how to do it.

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Mouse hover over objects

Postby prkos » Sat Mar 10, 2018 4:20 am

Javascript is the way to go. Have you any experience in scripting?
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

Zech
Posts: 43
Joined: Wed Jan 24, 2018 8:38 am

Re: Mouse hover over objects

Postby Zech » Sat Mar 10, 2018 5:15 am

A little bit. Still learning.

Zech
Posts: 43
Joined: Wed Jan 24, 2018 8:38 am

Re: Mouse hover over objects

Postby Zech » Sat Mar 10, 2018 8:44 am

I know I'm supposed to type in a code where I highlighted green in this picture https://drive.google.com/file/d/1GLWKpB ... p=drivesdk
And I know for sure what's highlighted yellow is correct. But I don't know the next step

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: Mouse hover over objects

Postby Xav » Sun Mar 11, 2018 3:54 am

In this particular case you would want to have something like "fill stroke stroke-width". Moving the mouse over the first element will then set the "fill" attribute on the second one to "red", the "stroke" attribute to "black" and the "stroke-width" attribute to "5px". You might also want to set up something for "mouse out" to change the fill and stroke to "transparent".
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter

Zech
Posts: 43
Joined: Wed Jan 24, 2018 8:38 am

Re: Mouse hover over objects

Postby Zech » Sun Mar 11, 2018 6:57 am

I'll try it, thanks.


Return to “Help with using Inkscape”