PluginProbe
Amedea – Unique Design Elements for Elementor / trunk
Amedea – Unique Design Elements for Elementor vtrunk
trunk 0.0.4.7
amedea / assets / css / on-scroll-morph.css

on-scroll-morph.css in Amedea – Unique Design Elements for Elementor trunk, at assets/css/on-scroll-morph.css

423 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*
2
3
4
5 Author : Amedea
6
7 Author URI : https://amedeapro.com
8
9 Author : Moskva Yigit
10
11 Author URI : http://moskvayigit.com
12
13 Version : 0.0.3.9
14
15
16
17 Table of Contents
18
19 - On-Scroll Morph
20
21
22
23 */
24
25
26
27 /*----------------------------
28
29 .-- On-Scroll Morph
30
31 -----------------------------*/
32
33
34
35 .morph--light,
36
37 .morph--dark {
38
39 overflow: hidden;
40
41 }
42
43
44
45 .morph--light{
46
47 color:#fff;
48
49 }
50
51
52
53 .morph--dark{
54
55 color:#000;
56
57 }
58
59
60
61 .content-morph-wrap {
62
63 margin: 0;
64
65 color: #fff;
66
67 font-family: sans-serif;
68
69 -webkit-font-smoothing: antialiased;
70
71 -moz-osx-font-smoothing: grayscale;
72
73 }
74
75
76
77 .intro--morph {
78
79 height: calc(100vh - 3rem);
80
81 padding-top: 10vh;
82
83 text-align: center;
84
85 place-items: center;
86
87 display: grid;
88
89 grid-template-areas: 'intro';
90
91 margin-bottom: 80vh;
92
93 }
94
95
96
97 .intro--morph__title {
98
99 grid-area: intro;
100
101 place-items: center;
102
103 margin: 0;
104
105 display: grid;
106
107 position: relative;
108
109 z-index: 100;
110
111 }
112
113
114
115 .intro--morph__title-pre {
116
117 font-size: clamp(2rem,10vw,5rem);
118
119 font-weight: 400;
120
121 }
122
123
124
125 .intro--morph__title-sub {
126
127 font-size: 1.5rem;
128
129 margin: 1rem 0;
130
131 }
132
133
134
135 .content-morph-wrap {
136
137 display: grid;
138
139 gap: 40vh;
140
141 margin-bottom: 40vh;
142
143 }
144
145
146
147 .content-morph {
148
149 flex: none;
150
151 display: grid;
152
153 place-items: center;
154
155 line-height: 1.2;
156
157 grid-template-areas: 'title' 'layout' '...';
158
159 grid-template-rows: 3.5vw auto 3.5vw;
160
161 gap: 1rem;
162
163 }
164
165
166
167 .content--intro {
168
169 grid-area: intro;
170
171 }
172
173
174
175 .content_morph__img-wrap {
176
177 grid-area: layout;
178
179 }
180
181
182
183 .content_morph__img {
184
185 --img-width: 60vw;
186
187 --img-height: 40vh;
188
189 --img-ar: auto;
190
191 --img-inner-margin-x: 0px;
192
193 --img-inner-margin-y: 0px;
194
195 position: relative;
196
197 overflow: hidden;
198
199 display: grid;
200
201 place-items: center;
202
203 width: var(--img-width);
204
205 height: var(--img-height);
206
207 aspect-ratio: var(--img-ar);
208
209 }
210
211
212
213 .content_morph__img--1 {
214
215 --img-width: 70vw;
216
217 --img-height: auto;
218
219 --img-ar: 16/8;
220
221 }
222
223
224
225 .content_morph__img--2 {
226
227 --img-width: 100vw;
228
229 --img-height: 100vh;
230
231 }
232
233
234
235 .content_morph__img--3 {
236
237 --img-width: 100vw;
238
239 --img-height: 200vh;
240
241 }
242
243
244
245 .content_morph__img--4 {
246
247 --img-width: 40vw;
248
249 --img-height: auto;
250
251 --img-ar: 0.8;
252
253 }
254
255
256
257 .content_morph__img--5 {
258
259 --img-width: 60vw;
260
261 --img-height: auto;
262
263 --img-ar: 1;
264
265 }
266
267
268
269 .content_morph__img--6 {
270
271 --img-width: 70vw;
272
273 --img-height: auto;
274
275 --img-ar: 16/8;
276
277 }
278
279
280
281 .content_morph__img-inner {
282
283 grid-area: 1 / -1;
284
285 width: calc(100% + var(--img-inner-margin-x) * 2);
286
287 height: calc(100% + var(--img-inner-margin-y) * 2);
288
289 background-size: cover;
290
291 background-position: 50% 50%;
292
293 }
294
295
296
297 .content_morph__img-inner--hidden {
298
299 opacity: 0;
300
301 }
302
303
304
305 .content_morph__text {
306
307 position: relative;
308
309 z-index: 100;
310
311 grid-area: title;
312
313 font-size: clamp(2rem, 6vw, 4rem);
314
315 margin: 0;
316
317 display: flex;
318
319 flex-direction: column;
320
321 font-weight: 400;
322
323 line-height: 0.8;
324
325 }
326
327
328
329 .content_morph__text span span {
330
331 display: inline-block;
332
333 }
334
335
336
337 .content_morph__text span span.whitespace {
338
339 white-space: pre;
340
341 }
342
343
344
345 .content_morph__text--large {
346
347 font-size: clamp(2rem, 7vw, 6rem);
348
349 }
350
351
352
353 .content_morph__text--center {
354
355 text-align: center;
356
357 align-self: stretch;
358
359 justify-content: space-between;
360
361 grid-row: 1 / span 3;
362
363 }
364
365
366
367 .content_morph__text--left {
368
369 justify-self: start;
370
371 padding: 3rem;
372
373 grid-area: layout;
374
375 align-self: center;
376
377 }
378
379
380
381 .content_morph__text-tiny {
382
383 text-transform: none;
384
385 font-family: sans-serif;
386
387 font-size: 1.5rem;
388
389 font-weight: 300;
390
391 max-width: 400px;
392
393 line-height: 1.2;
394
395 margin-top: 10vh;
396
397 }
398
399
400
401 @media screen and (min-width: 53em) {
402
403
404
405 .content_morph__img--4 {
406
407 --img-width: 30vw;
408
409 }
410
411
412
413 .content_morph__img--5 {
414
415 --img-width: 40vw;
416
417 }
418
419
420
421 }
422
423