-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestSVG.html
More file actions
31 lines (31 loc) · 811 Bytes
/
testSVG.html
File metadata and controls
31 lines (31 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>External SVG Color Invert on Hover</title>
<style>
object {
display: block;
width: 24px;
height: 24px;
background-color: transparent;
}
object svg path {
fill: #005496; /* Matches original, optional */
}
object:hover {
background-color: #005496; /* Blue background on hover */
}
object:hover svg path {
fill: none; /* Transparent shape on hover */
stroke: none; /* No stroke */
}
</style>
</head>
<body>
<object type="image/svg+xml" data="./assets/edit.svg" width="24" height="24">
Your browser does not support SVG.
</object>
</body>
</html>