-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
45 lines (45 loc) · 1.3 KB
/
index.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
41
42
43
44
45
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>SVG markers</title>
<style>
body {
display: flex;
height: 100vh;
overflow: hidden;
}
figure {
border: 1px solid #ddd;
margin: auto;
width: 500px;
}
line, path {
stroke: #333;
}
path {
fill: none;
}
</style>
</head>
<body>
<figure>
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'>
<defs>
<marker
id='arrowHead'
viewBox='0 0 10 10' orient='auto'
markerHeight='10' markerWidth='10'
refX='3' refY='5'
>
<polygon points='0,0 10,5 0,10 3,5' />
</marker>>
</defs>
<line x1='50' y1='250' x2='400' y2='100' marker-end='url(#arrowHead)' marker-start='url(#arrowHead)' />
<path d='M53,301c96-42,278-130,197-12c-50.3,73.2,35,198,129-24' marker-end='url(#arrowHead)' marker-mid='url(#arrowHead)' />
</svg>
</figure>
</body>
</html>