Skip to content

Instantly share code, notes, and snippets.

@neluttu
Last active May 19, 2024 19:40
Show Gist options
  • Select an option

  • Save neluttu/4ba266f5d0f2754f4940af14b1a11046 to your computer and use it in GitHub Desktop.

Select an option

Save neluttu/4ba266f5d0f2754f4940af14b1a11046 to your computer and use it in GitHub Desktop.
Blurred text reveal
<style>
.cool {
padding: 10px;
font-size: 42px;
}
.cool > span {
filter: blur(calc(1rem * var(--blur, .4)));
transition: filter var(--speed, 5s);
}
.cool > span:hover {
--blur: 0;
--speed: 0.1s;
}
</style>
<div class="carousel">
<img src="https://picsum.photos/id/237/536/354">
<img src="https://picsum.photos/seed/picsum/536/354">
<img src="https://picsum.photos/id/1084/536/354?grayscale">
<img src="https://picsum.photos/id/1060/536/354?blur=2">
</div>
<div class="cool">
I am a <span>f</span><span>u</span><span>l</span><span>l</span><span>s</span><span>t</span><span>a</span><span></span><span>c</span><span>k</span> developer
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment