-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (46 loc) · 942 Bytes
/
index.html
File metadata and controls
51 lines (46 loc) · 942 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Rotating Curved Text</title>
<style>
body {
background: #f0f0f0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.rotate {
animation: spin 5s linear infinite;
transform-origin: center;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
text {
fill: blue;
font-size: 24px;
font-weight: bold;
}
</style>
</head>
<body>
<svg width="400" height="400">
<g class="rotate">
<defs>
<path id="circlePath" d="M200,200 m-150,0 a150,150 0 1,1 300,0 a150,150 0 1,1 -300,0" />
</defs>
<text>
<textPath href="#circlePath" startOffset="50%" text-anchor="middle">
my name is rafiz
</textPath>
</text>
</g>
</svg>
</body>
</html>
```