Skip to content

Commit 227a770

Browse files
Update flex panel gallery
1 parent c1ee4c4 commit 227a770

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

05 - Flex Panel Gallery/css/style.css

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
--box-shadow-clr: #ffffff1a;
55
--text-shadow-clr1: #00000073;
66
--text-shadow-clr2: #000000b8;
7+
--bg-blend-mode-clr1: #ea9df0fb;
8+
--bg-blend-mode-clr2: #e9b981e5;
9+
--bg-blend-mode-clr3: #f1c166f6;
10+
--bg-blend-mode-clr4: #b1dd5ed3;
11+
--bg-blend-mode-clr5: #dd3a1dc4;
712
--font-family: "Amatic SC", cursive;
813
}
914

@@ -36,35 +41,43 @@ body {
3641
align-items: center;
3742
color: var(--white);
3843
background: center/cover;
44+
background-blend-mode: darken;
3945
box-shadow: inset 0 0 0 0.3rem var(--box-shadow-clr);
40-
/* Safari transitionend event.propertyName === flex */
41-
/* Chrome + FF transitionend event.propertyName === flex-grow */
4246
transition: flex 0.7s cubic-bezier(0.61, -0.19, 0.7, -0.11), background 0.2s;
4347
}
4448

4549
.panel1 {
4650
background-image: url(../img/sea.jpg);
51+
background-color: var(--bg-blend-mode-clr1);
4752
}
4853

4954
.panel2 {
5055
background-image: url(../img/blue.jfif);
51-
background-position: 70%;
56+
background-position: 75%;
57+
background-color: var(--bg-blend-mode-clr2);
58+
filter: contrast(103%);
5259
}
5360

5461
.panel3 {
5562
background-image: url(../img/nature.jfif);
63+
background-position: 35%;
64+
background-color: var(--bg-blend-mode-clr3);
5665
}
5766

5867
.panel4 {
59-
background-image: url(../img/mountain.jfif);
68+
background-image: url(../img/tree.jpg);
69+
background-color: var(--bg-blend-mode-clr4);
70+
filter: contrast(103%);
6071
}
6172

6273
.panel5 {
6374
background-image: url(../img/fox.jfif);
75+
background-color: var(--bg-blend-mode-clr5);
6476
}
6577

6678
.panel > * {
67-
transition: transform 0.5s, font-size 0.7s cubic-bezier(0.61, -0.19, 0.7, -0.11);
79+
transition: transform 0.5s,
80+
font-size 0.7s cubic-bezier(0.61, -0.19, 0.7, -0.11);
6881
}
6982

7083
.panel > p {
@@ -74,7 +87,8 @@ body {
7487
align-items: center;
7588
font-size: 8rem;
7689
text-transform: uppercase;
77-
text-shadow: 0 0 0.4rem var(--text-shadow-clr1), 0 0 1.4rem var(--text-shadow-clr2);
90+
text-shadow: 0 0 0.4rem var(--text-shadow-clr1),
91+
0 0 1.4rem var(--text-shadow-clr2);
7892
}
7993

8094
.panel > p:nth-child(2) {
@@ -131,6 +145,10 @@ body {
131145
html {
132146
font-size: 8px;
133147
}
148+
149+
.panel3 {
150+
background-position: center;
151+
}
134152
}
135153

136154
@media screen and (max-width: 800px) {
-247 KB
Binary file not shown.

05 - Flex Panel Gallery/img/tree.jpg

109 KB
Loading

0 commit comments

Comments
 (0)