<div class="title">
<h1><span>Jackie</span> <span>Brown</span></h1>
</div>
@font-face {
font-family: "VI Vong Vang";
src: url("./vi-vong-vang.ttf");
}
:root {
--text-color: hsl(44deg 98% 50%);
--shadow-color: hsl(0deg 96% 27%);
}
* {
box-sizing: border-box;
}
body {
display: grid;
overflow: hidden;
height: 100dvh;
margin: 0;
background-color: black;
place-items: center;
}
.title {
width: 100%;
max-width: 1920px;
aspect-ratio: 1920 / 1080;
background-image: url("img/bg.webp");
background-repeat: no-repeat;
background-size: cover;
}
h1 {
display: grid;
padding: 0 1%;
animation: reveal 1.5s;
animation-delay: 0.5s;
animation-fill-mode: forwards;
animation-iteration-count: 1;
animation-timing-function: linear;
color: var(--text-color);
font-family: "VI Vong Vang", cursive;
font-size: clamp(1rem, 15vw + 0.75rem, 50rem);
grid-template-columns: 15% 1fr;
letter-spacing: -1px;
line-height: 1;
margin-block-start: 5%;
margin-inline-start: 10%;
mask-image: linear-gradient(
to right,
black 0% 50%,
rgb(0 0 0 / 10%) 50%,
transparent 51%,
rgb(0 0 0 / 30%) 51.5%,
transparent 51.5% 100%
);
mask-position: 100%;
mask-size: 200% 100%;
text-shadow:
/*left side*/ -0.01em 0 var(--shadow-color),
-0.01em 0.005em var(--shadow-color), -0.02em 0.02em var(--shadow-color),
-0.025em 0.03em var(--shadow-color),
/* top side */ 0 -0.01em var(--shadow-color),
/* right side*/ 0.03em 0.03em var(--shadow-color);
}
h1 span:nth-of-type(1) {
grid-column: 1 / -1;
}
h1 span:nth-of-type(2) {
grid-column: 2;
}
@keyframes reveal {
100% {
mask-position: 0%;
}
}
This is a CSS animation of the title card for the movie Jackie Brown.
You can read my notes on the implemenation.