CSS Trick โจ
You can create this glitch hover effect by animating pseudoelement content ๐ฌ
button:hover span:after {
animation: flip 0.2s calc(var(--i) * 0.05s);
}
@โkeyframes flip {
20% { content: '_'; }
40% { content: var(--c1); }
60% { content: var(--c2); }
}
It's a funky little track that allows you to animate text flipping with CSS ๐ค
Leaning into custom properties, you can make each flip animation random with inline styles ๐จ
<button>
<span
style="--i: 0; --c1: 'x'; --c2: '$'; --c3: 'โ';"
>C</span>
<span
style="--i: 1; --c1: 'รง'; --c2: '&'; --c3: 'ฯ';"
>l</span>
<!-- Other characters -->
<span class="sr-only">Click Me</span>
</button>
You make use of each character within the keyframes above. And "--i" communicates the index that you can use for the animation-delay ๐
That's all there is to it!
As always, any requests or suggestions, hit me up! ๐
@CodePen link below! ๐
Introducing fastwebsockets: a new high-performance WebSocket protocol implementation in Rust
ยท Raw WebSocket frame parser or full-fledged client/server
ยท Integrates with Hyper
ยท Passes Autobahn|TestSuite1 and fuzzed with LLVM's libfuzzer
https://t.co/NSyOtH7JJZ
Tip: Emulate vision deficiencies in @ChromeDevTools to see how users who experience color blindness or blurred vision might see your site.
In Chrome 112, we also now support emulating "reduced contrast": https://t.co/DjwV0lrH0e #accessibility
There's definitely room for better build tools, but the most important thing a build tool can offer is developer control. You shouldn't end up with a heavy app because the build tool won't let you do anything about it.
We have found over 4,300 planets beyond our solar system, but we still only know of one that is just right for human life โ our home on Earth. ๐ #MondayMotivation
@AlejandroAkbal@addyosmani@ChromeDevTools First you notice it, the app was not as snappy & reactive as it was, then you measure it (Devtools). Btw, Zepto.js has been tested several times by many devs (google this), and many (if not all) conclude that Zepto is actually slower than Jquery