-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (57 loc) · 1.66 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
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sliding navigation</title>
<link
rel="stylesheet"
href="https://unpkg.com/boxicons@latest/css/boxicons.min.css"
/>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<h1>Sliding <span>Gooey</span> Animation</h1>
<div id="nav-container">
<svg
width="500"
height="100"
xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 500 100"
>
<defs>
<filter id="gooFilter">
<feGaussianBlur
in="SourceGraphic"
stdDeviation="10"
result="blur"
/>
<feColorMatrix
in="blur"
mode="matrix"
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -8"
/>
<feBlend in="SourceGraphic" in2="goo" mode="atop" />
</filter>
</defs>
<g filter="url(#gooFilter)">
<circle class="goop" cx="50" cy="50" r="40" />
<circle class="goop" cx="50" cy="50" r="40" />
</g>
</svg>
<nav>
<a href="#">
<i class="bx bxl-instagram"></i>
</a>
<a href="#"> <i class="bx bxl-facebook"></i> </a>
<a href="#"> <i class="bx bxl-tiktok"></i> </a>
<a href="#"> <i class="bx bxl-gmail"></i> </a>
<a href="#">
<i class="bx bxl-snapchat"></i>
</a>
</nav>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.1/gsap.min.js"></script>
<script src="main.js"></script>
</body>
</html>