Compare commits

...

4 commits

Author SHA1 Message Date
3bce8b549a
Fix: change html link to markdown link 2024-07-26 20:07:45 +02:00
cdb8af38f8
Fix: reorder "The Effet" section 2024-07-26 20:05:36 +02:00
e6ca230722
Fix: typo 2024-07-26 20:04:35 +02:00
0d4eb1cb36
Fix: width on small screens 2024-07-26 19:55:31 +02:00

View file

@ -1,7 +1,7 @@
---
title: Cyberpunk-Style Glitch Text Walkthrough
date: 2024-07-23T18:35:26.560Z
lastmod: 2024-07-24T20:43:47.560Z
lastmod: 2024-07-26T17:49:19.234Z
image: /images/blog/2024-07-23-cyberpunk-style-glitch-text-walkthrough/Peek 2024-07-24 22-34.gif
description: Discover how to create a cyberpunk-style glitch text effect using pure CSS. This guide covers text layering, clip-paths, and animations for a dynamic, futuristic look. Dive in and start glitching!
tags:
@ -27,6 +27,7 @@ slug: cyberpunk-style-glitch-text-walkthrough
.post-single-content .demo {
height: 100px;
margin: 0 20px 0 20px;
background: #fff;
}
@ -505,18 +506,9 @@ slug: cyberpunk-style-glitch-text-walkthrough
}
</style>
# The Effect
# Walkthrough
{{< details "The Effect (What we are going to make)">}}
<div class="hero-container">
<div class="environment"></div>
<h2 class="hero glitch layers" data-text="近設計"><span>近設計</span></h2>
</div>
{{< /details >}}
## Walkthrough
This came out of a 24-hour work sprint to replicate some sophisticated video VFX in to make it more flexible.
This came out of a 24-hour work sprint to replicate some sophisticated video VFX and to make it more flexible.
There's a lot of pieces that go into an effect like this. What follows is an outline of the animations and VFX concepts, all in pure css :)
@ -533,6 +525,17 @@ There's a lot of pieces that go into an effect like this. What follows is an out
---
## The Effect
This is how the complete effect looks like
{{< details "The Effect (What we are going to make)">}}
<div class="hero-container">
<div class="environment"></div>
<h2 class="hero glitch layers" data-text="近設計"><span>近設計</span></h2>
</div>
{{< /details >}}
## Layers
Create multiple layers to play with. For this example I'll use `::before` & `::after` elements, but this could just as easily be multiple div's overlapped, or whatever.
@ -571,7 +574,7 @@ Create multiple layers to play with. For this example I'll use `::before` & `::a
## Paths
Build out a set of clip-paths (I wrote up a <a href="/tools/randomly-generated-clip-path/">generator util</a> for this project)
Build out a set of clip-paths (I wrote up a [generator util](/tools/randomly-generated-clip-path/) for this project)
**Example Path:**