tubeshowcase●1,671,018 videos♡ My collection 0
← Learn to Code

Learn to Code22:25

Can I recreate this tucked-corner photo effect with CSS?

Kevin Powell ↗

From the creator

Looking to step up your CSS game? I have free and premium courses 👉 https://kevinpowell.co/courses?utm_campaign=general&utm_source=youtube&utm_medium=cornerframeclone 🔗 Links ✅ Alvaro’s original codepen: https://codepen.io/alvaromontoro/pen/VwVNQxg ✅ My attempt: https://codepen.io/kevinpowell/pen/VwRLWWY ✅ Twitter thread with other possible solutions (which is what had Alvaro make his attempt): https://twitter.com/anatudor/status/1688641486366052353 ⌚ Timestamps 00:00 - Introduction 00:45 - I’ve got new Merch 01:13 - The tricky part we’re trying to copy 01:45 - The easy parts 02:45 - Using pseudo-elements for the shadows 08:20 - Trying (and failing) to hide the corners 09:57 - Giving up and looking at Alvaro’s code 11:30 - Setting up the clip path 14:30 - Setting up the fake border on the image 18:00 - Setting up the fake shadow 19:20 - Improving the look of it #css -- 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 Come hang out with me live every Monday on Twitch! 📺 https://www.twitch.tv/kevinpowellcss --- 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 s

Published 2024-02-13 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code