tubeshowcase●913,532 videos♡ My collection 0
← Learn to Code

Learn to Code19:48

Animated glitch text effect with CSS only

Kevin Powell ↗

From the creator

Join my Discord community: https://discord.gg/GaBdxcE I don't think I'd use this very often, but it's a fun way to play around with CSS! A fun use of text-shadows, keyframes and clip-path can lead to a pretty nice looking glitch effect for some text. One thing that's important is to stop the animation for users who prefer not having animations, so we take a look at that too. web.dev article on prefers-reduced-motion: https://web.dev/prefers-reduced-motion/#(bonus)-forcing-reduced-motion-on-all-websites Clip path tool: https://bennettfeely.com/clippy/ Codepen of this: https://codepen.io/kevinpowell/pen/YzqerQm Timestamps 00:00 - Intro 01:00 - Glitch setup 04:11 - Glitch animation 07:43 - Broken text effect 16:21 - prefers-reduced-motion 18:28 - outro -- Come hang out with other dev's in my Discord Community 💬 https://discord.gg/nTYCvrK --- Keep up to date with everything I'm up to ✉ https://www.kevinpowell.co/newsletter --- Help support my channel 👨‍🎓 Get a course: https://www.kevinpowell.co/courses 👕 Buy a shirt: https://teespring.com/stores/making-the-internet-awesome 💖 Support me on Patreon: https://www.patreon.com/kevinpowell --- My editor: VS Code - https://code.visualstudio.com/ --- I'm on some other places on the internet too! If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter. Instagram: https://www.instagram.com/kevinpowell.co/ Twitter: https://twitter.com/KevinJPo

Published 2020-09-23 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code