forked from wesbos/hot-tips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpixelated-stretch.html
49 lines (37 loc) · 1.02 KB
/
pixelated-stretch.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
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<!-- svg: first layer -->
<svg viewBox='0 0 261 261' xmlns='http://www.w3.org/2000/svg'>
<filter id='noiseFilter'>
<feTurbulence type='fractalNoise' baseFrequency='8.29' numOctaves='6' stitchTiles='stitch' />
</filter>
<rect width='100%' height='100%' filter='url(#noiseFilter)' />
</svg>
<img src="./four dots.png" />
<img width="1000" src="./four dots small.png" />
<div style="width: 500px; height: 500px; "> </div>
<style>
img,
div {
image-rendering: pixelated;
display: none;
}
svg {
display: none;
}
html {
/* filter: contrast(170%) brightness(200%); */
background:
linear-gradient(71deg, rgba(0, 0, 255, 1), rgba(34, 69, 109, 0)),
url(/👆/that/noise.svg);
}
</style>
</body>
</html>