Frontend Forever App
We have a mobile app for you to download and use. And you can unlock many features in the app.
Get it now
Intall Later
Run
HTML
CSS
Javascript
Output
The Day
The Night
figure { display: grid; border-radius: 1rem; overflow: hidden; cursor: pointer; } figure > * { grid-area: 1/1; transition: .4s; } figure figcaption { display: grid; align-items: end; font-family: sans-serif; font-size: 2.3rem; font-weight: bold; color: #0000; padding: .75rem; background: var(--c,#0009); clip-path: inset(0 var(--_i,100%) 0 0); -webkit-mask: linear-gradient(#000 0 0), linear-gradient(#000 0 0); -webkit-mask-composite: xor; -webkit-mask-clip: text, padding-box; } figure:hover figcaption{ --_i: 0%; } figure:hover img { transform: scale(1.2); } @supports not (-webkit-mask-clip: text) { figure figcaption { -webkit-mask: none; color: #fff; } } body { margin: 0; min-height: 100vh; display: grid; grid-auto-flow: column; place-content: center; background: #425a52; }