<community>of XML and SVG Developers</community>
This is a discussion on hovering onto image.gif and automatically drawing a svg path within the SVG Questions forums, part of the SVG Forums category; Hi i need to be able to hover over a particular image.gif and draw a svg path around a certain ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| For example if i had a house with bedrooms and a kitchen in it. When the user moves the mouse inside the bedroom area it outlines the bedroom with a path. So it traces the outline of the room. But if i take the mouse pointer outside into a different area such as teh kitchen the path dissapears. Im not worried about how the path looks. A simple rectangle path will be fine. But just the functionality of how the mouse hovers into the area and draws the path shape automatically. Could someone please help me do this i need help bad.. Thanks ![]() |
| |||
|
You can use set attribute on stroke to show / hide rectangle. In this example, I add dashed line turning around area when pointer is on rectangle You can remove stroke-dasharray, stroke-dashoffset and animate attribute <rect x="20" y="20" width="100" height="100" fill="none" stroke-width="2" stroke-dasharray="5 5" stroke-dashoffset="0" stroke="none" pointer-events="visible"> <set attributeName="stroke" to="red" begin="mouseover" end="mouseout"/> <animate attributeName="stroke-dashoffset" values="0;10" begin="mouseover" dur="0.5" repeatCount="indefinite"/> </rect> Michel |
![]() |
| Tags |
| automatically, drawing, hovering, imagegif, path, svg |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Inkjet Printer Inks
Get high quality inkjet printer inks from Prink. We have over 50,000 ink cartridges in stock. Free UK deliver on inkjet inks.
epson ink cartridges
Discount Epson ink Cartridges from Internet Ink. Some of the cheapest Ink cartridges online.
Hard disk drive data recovery lancashire
The sooner you call us, the sooner your hard disk data recovery can start. We collect from your home or office in Lancashire.