-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path9b.html
More file actions
54 lines (51 loc) · 1.37 KB
/
Copy path9b.html
File metadata and controls
54 lines (51 loc) · 1.37 KB
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
52
53
54
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>=^.^=</title>
<style>
body {
background: url( "./kodim23.png" );
}
@keyframes safari-force-repaint {
0%, 100% {opacity: 1;}
}
</style>
</head>
<body>
<svg width="0" height="0" xmlns="http://www.w3.org/2000/svg" style="position: absolute;">
<filter id="outline" x="-50%" y="-50%" width="200%" height="200%">
<!-- 外側の黒アウトライン(8px拡大) -->
<feMorphology in="SourceAlpha" operator="dilate" radius="8" result="outer-dilated" />
<feColorMatrix in="outer-dilated" type="matrix" values="
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0" result="outer-outline"/>
<!-- 内側の白のアウトライン(4px拡大) -->
<feMorphology in="SourceAlpha" operator="dilate" radius="4" result="inner-dilated" />
<feColorMatrix in="inner-dilated" type="matrix" values="
1 0 0 0 1
0 1 0 0 1
0 0 1 0 1
0 0 0 1 0" result="inner-outline"/>
<!-- 3つのレイヤーを合成: 白 → 紫 → 元画像 -->
<feMerge>
<feMergeNode in="outer-outline"/>
<feMergeNode in="inner-outline"/>
<feMergeNode in="SourceGraphic"/>
</feMerge>
</filter>
</svg>
<p style="
font-family: sans-serif;
font-size: 64px;
color: #ff0000;
filter: url(#outline);
animation: safari-force-repaint 1s infinite;
">
あいうえお
</p>
</body>
</html>