Skip to content

Commit 84c47b0

Browse files
committed
Change hero background
1 parent 932d80e commit 84c47b0

3 files changed

Lines changed: 178 additions & 109 deletions

File tree

css/menikah.css

Lines changed: 76 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,44 @@ html {
3939

4040

4141
.hero {
42-
/* background-image: url(https://picsum.photos/id/25/1920/1080); */
43-
background: linear-gradient(rgba(56, 46, 55, 0.75), rgba(94, 70, 95, 0.75)), rgba(0, 0, 0, 0.95) url(../image/gili.jpg) no-repeat;
44-
background-attachment: scroll;
45-
background-size: cover;
46-
background-position: center;
47-
background-repeat: no-repeat;
48-
/* min-height: 100vh; */
42+
position: relative;
43+
overflow: hidden;
44+
background: #111;
45+
isolation: isolate;
4946
color: white;
5047
box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
51-
/* background-position-x: left 200px; */
5248
font-family: 'Raleway', sans-serif;
5349
}
5450

51+
.hero-background-video {
52+
position: absolute;
53+
inset: 0;
54+
width: 100%;
55+
height: 100%;
56+
object-fit: cover;
57+
object-position: center;
58+
z-index: 0;
59+
pointer-events: none;
60+
}
61+
62+
.hero-video-overlay {
63+
position: absolute;
64+
inset: 0;
65+
z-index: 1;
66+
pointer-events: none;
67+
background: linear-gradient(rgba(56, 46, 55, 0.68), rgba(94, 70, 95, 0.72));
68+
}
69+
70+
.hero .hero-body {
71+
position: relative;
72+
z-index: 2;
73+
}
74+
75+
.hero .space40px {
76+
position: relative;
77+
z-index: 2;
78+
}
79+
5580

5681

5782
.hero .title {
@@ -1107,7 +1132,7 @@ input#flap {
11071132
position: fixed;
11081133
inset: 0;
11091134
z-index: 9999999;
1110-
background: linear-gradient(180deg, #fff8fd 0%, #f8ecf8 100%);
1135+
background: linear-gradient(#fdfcfb, #f7f5f2);
11111136
}
11121137

11131138
.envelope-preloader {
@@ -1129,6 +1154,23 @@ input#flap {
11291154
transform-style: preserve-3d;
11301155
}
11311156

1157+
.envelope-stage::before {
1158+
content: "";
1159+
position: absolute;
1160+
left: 50%;
1161+
top: 2%;
1162+
width: min(96vw, 980px);
1163+
height: min(36vh, 320px);
1164+
transform: translateX(-50%) translateY(0);
1165+
pointer-events: none;
1166+
z-index: 9;
1167+
opacity: 0;
1168+
background:
1169+
radial-gradient(ellipse at 50% 12%, rgba(66, 39, 72, 0.42) 0%, rgba(66, 39, 72, 0.2) 34%, rgba(66, 39, 72, 0) 72%);
1170+
filter: blur(10px);
1171+
transition: opacity 0.75s ease, transform 1.1s cubic-bezier(.18, .82, .24, 1);
1172+
}
1173+
11321174
.envelope-stage::after {
11331175
content: "";
11341176
position: absolute;
@@ -1153,6 +1195,9 @@ input#flap {
11531195
background:
11541196
repeating-linear-gradient(0deg, rgba(132, 94, 140, 0.02) 0 1px, transparent 1px 4px),
11551197
linear-gradient(180deg, rgba(253, 245, 252, 0.98) 0%, rgba(238, 220, 238, 0.98) 100%);
1198+
box-shadow:
1199+
inset 0 1px 0 rgba(255, 248, 255, 0.7),
1200+
inset 0 -18px 28px rgba(117, 83, 124, 0.1);
11561201
}
11571202

11581203
.envelope-letter {
@@ -1198,6 +1243,10 @@ input#flap {
11981243
background:
11991244
repeating-linear-gradient(0deg, rgba(132, 94, 140, 0.017) 0 1px, transparent 1px 4px),
12001245
linear-gradient(115deg, rgba(248, 236, 247, 0.97) 0%, rgba(226, 200, 228, 0.97) 100%);
1246+
box-shadow:
1247+
inset 1px 0 0 rgba(255, 248, 255, 0.62),
1248+
inset -22px 0 28px rgba(109, 78, 114, 0.16),
1249+
inset 0 10px 16px rgba(255, 244, 255, 0.18);
12011250
z-index: 4;
12021251
}
12031252

@@ -1206,6 +1255,10 @@ input#flap {
12061255
background:
12071256
repeating-linear-gradient(0deg, rgba(132, 94, 140, 0.017) 0 1px, transparent 1px 4px),
12081257
linear-gradient(245deg, rgba(248, 236, 247, 0.97) 0%, rgba(226, 200, 228, 0.97) 100%);
1258+
box-shadow:
1259+
inset -1px 0 0 rgba(255, 248, 255, 0.62),
1260+
inset 22px 0 28px rgba(109, 78, 114, 0.16),
1261+
inset 0 10px 16px rgba(255, 244, 255, 0.18);
12091262
z-index: 4;
12101263
}
12111264

@@ -1214,6 +1267,9 @@ input#flap {
12141267
background:
12151268
repeating-linear-gradient(0deg, rgba(132, 94, 140, 0.02) 0 1px, transparent 1px 4px),
12161269
linear-gradient(180deg, rgba(241, 224, 240, 0.97) 0%, rgba(212, 181, 214, 0.97) 100%);
1270+
box-shadow:
1271+
inset 0 2px 0 rgba(255, 244, 255, 0.58),
1272+
inset 0 -24px 34px rgba(109, 78, 114, 0.22);
12171273
z-index: 5;
12181274
}
12191275

@@ -1224,7 +1280,9 @@ input#flap {
12241280
linear-gradient(180deg, rgba(252, 240, 250, 0.97) 0%, rgba(231, 208, 231, 0.97) 100%);
12251281
transform-origin: top center;
12261282
transition: transform 1.1s cubic-bezier(.18, .82, .24, 1), filter 0.8s ease;
1227-
box-shadow: inset 0 -18px 26px rgba(109, 78, 114, 0.12);
1283+
box-shadow:
1284+
inset 0 -18px 26px rgba(109, 78, 114, 0.12),
1285+
inset 0 1px 0 rgba(255, 248, 255, 0.68);
12281286
z-index: 10;
12291287
transform: translateZ(4px) rotateX(0deg);
12301288
backface-visibility: hidden;
@@ -1289,8 +1347,9 @@ input#flap {
12891347
.preloader-hint {
12901348
bottom: calc(env(safe-area-inset-bottom, 0px) + 4.4vh);
12911349
font-family: 'Lato', sans-serif;
1350+
font-weight: bold;
12921351
font-size: clamp(0.78rem, 1.4vw, 0.95rem);
1293-
letter-spacing: 0.12em;
1352+
letter-spacing: 0.5em;
12941353
text-transform: uppercase;
12951354
}
12961355

@@ -1306,6 +1365,12 @@ input#flap {
13061365
.envelope-preloader.open .envelope-panel-flap {
13071366
transform: translateZ(4px) translateY(-1.2vh) rotateX(36deg);
13081367
filter: brightness(0.97);
1368+
box-shadow: inset 0 -14px 20px rgba(109, 78, 114, 0.14);
1369+
}
1370+
1371+
.envelope-preloader.open .envelope-stage::before {
1372+
opacity: 1;
1373+
transform: translateX(-50%) translateY(1.2vh);
13091374
}
13101375

13111376
.envelope-preloader.open .envelope-letter {

image/proposal.mp4

25.2 MB
Binary file not shown.

0 commit comments

Comments
 (0)