-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpattern.html
More file actions
224 lines (143 loc) · 7.4 KB
/
pattern.html
File metadata and controls
224 lines (143 loc) · 7.4 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>Animated BG</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css'>
<link rel="stylesheet" href="./style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src= " https://code.jquery.com/jquery-3.2.1.slim.min.js "></script>
</head>
<body>
<!-- partial:index.partial.html -->
<div class="velle">
<div class="job">
<div class="header">
<a href="https://animatedbackgrounds.me">
<div class="logo">
<img class="user-profile"
src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtWaL3VKCRysQNlgJE2zy_LObYOQyRQpYXznxo_jLJzvyzD7xzWS0uhbCbHuByloo1yNOhencUMv0Nv2m8O9bduxsbXI0J8S7rUAKrebwDLfBAjuUTi1e_ErNsGmxRK5M9PnOaz1av6C6LZ9ypbdX8kz0DrohCsr_UchPYGsFwlO7p9QLLNr18Hr_Njg/w640-h640/IMG-20221201-WA0011-o17ZPqE_0-transformed.png"
alt="Animated-Backgrounds">
<article id="title"><span class="parent"> Animated</span><br />
<span class="name">Backgrounds</span>
</article>
</div>
</a>
<div class="user-settings">
<i class='bx bx-user'></i>
</div>
</div>
<div class="wrapper">
<div class="main-container">
<div class="search-type">
<div class="alert">
<div class="alert-title">Subscribe to our newsletter</div>
<div class="alert-subtitle">Weekly animations delivered straight to your inbox</div>
<input type="text" placeholder="Enter your email">
<button class="search-buttons">Subscribe</button>
</div>
<br>
<div class="job-time">
<div class="job-time-title">Type of Background</div>
<div id= "form" class="job-wrapper">
<div class="type-container">
<a href="https://animatedbackgrounds.me" class="bg-type" >
<label>All</label></a>
<span class="job-number">56</span>
</div>
<div class="type-container">
<a href="wave.html" class= "bg-type">
<label for="job6">Wave Animations</label></a>
<span class="job-number">28</span>
</div>
<div class="type-container">
<a href="Bubble.html" class="bg-type" >
<label for="job2">Bubble Animations</label></a>
<span class="job-number">43</span>
</div>
<div class="type-container">
<a href="heart.html" class="bg-type" >
<label for="job3">Heart animations</label></a>
<span class="job-number">24</span>
</div>
<div class="type-container">
<a href="pattern.html" class="bg-type" >
<label for="job4" id="label" >Pattern Animations</label></a>
<span class="job-number" id= "type">27</span>
</div>
<div class="type-container">
<a href="3d.html" class="bg-type" >
<label for="job5">3D backgrounds</label></a>
<span class="job-number">76</span>
</div>
<div class="type-container">
<a href="Tunnel.html" class="bg-type" >
<label for="job5">Tunnel backgrounds</label></a>
<span class="job-number">76</span>
</div>
<div class="type-container">
<a href="fluid.html" class="bg-type" >
<label for="job5">Fluid simulation</label></a>
<span class="job-number">76</span>
</div>
<div class="type-container">
<a href="Noise.html" class="bg-type" >
<label for="job5">Noise animations</label></a>
<span class="job-number">76</span>
</div>
<br>
<div class="button-width">
</div>
</div>
</div>
</div>
<!--animation shots -->
<main id="wave">
<script async type="text/javascript"
src="//cdn.carbonads.com/carbon.js?serve=CESI523J&placement=animatedbackgroundsme"
id="_carbonads_js"></script>
<button class="modal__button bg-button">Load More</button>
</main>
<!-- popup animations modal -->
</div>
<br><br>
<!-- article -->
<!-- partial -->
<script>
let b1= Pattern = ["Alca/pen/mdLaKyr", "winkerVSbecks/pen/gMOPqY", "sandrina-p/pen/mdbRKgg", "robdimarzo/pen/VqjvqR", "MillerTime/pen/ypWNOB", "antoniasymeonidou/pen/eYdyGmv", "shubniggurath/pen/VyaxjE", "shubniggurath/pen/REOZLY", ]
function replaceTerm(b1) { return b1.map(function(element) { // Replace the term "/pen/" with "/full/"
return element.replace("/pen/", "/full/"); }); }
const b2 = replaceTerm(b1);
for (var t = 0; t < b1.length; t++) {
let wave = document.getElementById('wave')
wave.innerHTML = wave.innerHTML + '<figure id="open-modal' + t + '" class="modal__button" style="background-image: url(https://shots.codepen.io/' + b1[t] + '-800.jpg)"></figure><div class="modal__container modal-container close-modal" id="modal-container' + t + '"><div class="modal__content"><div class="modal__close close-modal" title="Close"><i class="bx bx-x"></i></div><div class="iframe-head"><h5>Animated backgrounds</h5></div><iframe src="https://codepen.io/' + b2[t] + '" style="border:0px #ffffff none;" name="myiFrame" frameborder="1" height="400px" class="modal__img" ></iframe><a href="https://codepen.io/'+ b1[t] +'" target= "_blank"><button class="modal__button modal__button-width">Get Code</button><button class="modal__button-link close-modal">Close</button></div></div></div>';
const showModal = (openButton, modalContent) => {
const openBtn = document.getElementById(openButton),
modalContainer = document.getElementById(modalContent)
if (openBtn && modalContainer) {
openBtn.addEventListener('click', () => {
modalContainer.classList.add('show-modal')
})
}
}
for (var i = 0; i < b1.length; i++) {
showModal('open-modal' + i, 'modal-container' + i)
}
const buttons = document.querySelectorAll('.close-modal'); // Get all buttons with the class 'my-button'
const elements = document.querySelectorAll('.modal-container'); // Get all elements with the class 'my-element'
buttons.forEach((button) => {
button.addEventListener('click', () => {
elements.forEach((element) => {
element.classList.remove('show-modal'); // Remove the 'my-class' class from each element
});
});
});
}
</script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js'></script>
<script src="./script.js"></script>
</body>
</html>