Skip to content

Commit 86a14df

Browse files
committed
Animation markup
1 parent deeb1d8 commit 86a14df

File tree

2 files changed

+78
-1
lines changed

2 files changed

+78
-1
lines changed

applications/mix-blend-mode/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Blend in Animation</title>
7-
<link rel="style/css" href="./styles.css"/>
7+
<link rel="stylesheet" href="./styles.css"/>
88
</head>
99
<body>
1010
<div class = 'container projects'>
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
box-sizing: border-box;
5+
}
6+
:root {
7+
--primary-color: #6CD9CE;
8+
--secondary-color: #D93BA1;
9+
--complimentary-color: #2E2473;
10+
}
11+
.container {
12+
min-height: 100vh;
13+
position: relative;
14+
width: 100vw;
15+
display: flex;
16+
background-color: var(--complimentary-color);
17+
justify-content: center;
18+
align-items: center;
19+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
20+
position: relative;
21+
}
22+
23+
h1 {
24+
font-size: 150px;
25+
color: var(--primary-color);
26+
transform: translateY(-600px);
27+
animation: 1.2s slideIn ease-in-out forwards 1s;
28+
z-index: 10;
29+
opacity: 0;
30+
position: relative;
31+
}
32+
33+
h1::before {
34+
content: '';
35+
width: 0%;
36+
height: 76px;
37+
background-color: var(--secondary-color);
38+
position: absolute;
39+
bottom: -10px;
40+
animation: 1s underline ease-in-out forwards 2s;
41+
mix-blend-mode: screen;
42+
}
43+
44+
.overlay {
45+
position: absolute;
46+
width: 100%;
47+
top: 0;
48+
bottom: 0;
49+
opacity: 0;
50+
left: 0;
51+
right: 0;
52+
background-color: var(--secondary-color);
53+
transform: scale(.5);
54+
animation: .5s slideIn ease-in-out forwards, 1s skewBg ease-in-out;
55+
}
56+
57+
@keyframes skewBg {
58+
0% {
59+
transform: scale(.5);
60+
}
61+
100% {
62+
transform: scale(1);
63+
}
64+
}
65+
66+
@keyframes underline {
67+
100% {
68+
width: 100%;
69+
}
70+
}
71+
72+
@keyframes slideIn {
73+
100% {
74+
transform: translateY(0px);
75+
opacity: 1;
76+
}
77+
}

0 commit comments

Comments
 (0)