-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathctxmenu.html
40 lines (39 loc) · 829 Bytes
/
ctxmenu.html
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
32
33
34
35
36
37
38
39
40
<!doctype html>
<html>
<head>
<title>Sample</title>
<style>
#app {
width: 600px;
height: 400px;
display: block;
}
.menuItems {
opacity: 1;
transition: opacity 0.5s ease;
cursor: pointer;
}
.menuItem > text {
fill: white;
transition: all 0.5s ease;
}
.menuItem > path {
fill: #504f4f;
stroke: white;
transition: all 0.5s ease;
}
.menuItem:hover {
transform: scale(1.1);
}
.menuItem:hover > path {
fill: black;
}
</style>
</head>
<body>
<div id="app"></div>
<script src="https://cdn.jsdelivr.net/npm/cytoscape"></script>
<script src="../build/index.umd.js"></script>
<script src="ctxmenu.js"></script>
</body>
</html>