<div class="overlay">
<a href="#0" class="text">Hover!</a>
</div>
body {
margin: 0;
font-family: 'Oswald', sans-serif;
background: url('http://files.hawcubite.de/stock-images/landscapes/7777-a-rocky-coast-landscape-pv.jpg') no-repeat center center;
background-size: 100vw 100vh;
}
.overlay {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background: rgba(20,50,70,.9);
mix-blend-mode: multiply;
overflow: hidden;
}
a {
position: relative;
display: block;
color: rgba(0,0,0,0);
line-height: 0;
font-weight: bold;
text-decoration: none;
text-transform: uppercase;
text-align: center;
font-size: 35vh;
background: url('http://files.hawcubite.de/stock-images/landscapes/7777-a-rocky-coast-landscape-pv.jpg') no-repeat center center;
background-size: 100vw 100vh;
-webkit-background-clip: text;
-webkit-text-stroke: 1px rgba(255,255,255,1);
animation: out 1s;
transition: font-size 2s, opacity 2s, -webkit-text-stroke 2s;
}
a:hover {
line-height: 100%;
animation: in 1s;
}
a:focus {
line-height: 100%;
font-size: 150vh;
opacity: 0;
-webkit-text-stroke: 1px rgba(255,255,255,0);
animation: in 1s;
}
@keyframes in {
0% {line-height: 0%;}
100% {line-height: 100%;}
}
@keyframes out {
0% {line-height: 100%;}
100% {line-height: 0%;}
}
/* Webkit Triple Stroke & Blendmode, no JS & SVG
v0.1 17.09.15, only working in webkit-browsers, tested in chrome 45.0 & Opera 29
A filling fullscreen link with stroke and blendmode; faux bold is giving it a triple stroke from a larger viewport upwards (not sure if bug or feature).
The missing blend-mode when the click animation is fired also seems like a chrome bug, opera gets it done correctly.
The filling effect is provided by the line-height setting, this is not working in Opera.
*/
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.