Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver2
1395いいね 26347回再生

Create a super fun "focus by negation" effect

Adam Argyle posted a cool looking effect on his blog recently. It's not exactly practical in it's final form, but the earlier stages of it could be useful, and there is a lot to learn in going all-in with it.

I took a bit of a different approach with this video, doing it how I'd actually be learning something from a blog post and following along with it, so I'd love to know what you think of this format!

🔗 Links
✅ Adam’s blog post (has codepen examples of each of the steps along the way if you're looking for code): nerdy.dev/hover-not-hover-sorry-not-sorry
✅ Easing Wizard: easingwizard.com/

Get a YT membership: Join this channel to get access to perks:
youtube.com/channel/UCJZv4d5rbIKd4QHMPkcABCw/join

⌚ Timestamps
00:00 - Introduction
01:15 - The very basics
05:55 - Ensuring it works with focus
06:00 - Adding in a scaling effect
08:10 - Giving the animation some springiness
12:10 - Looking at the mobile experience
13:20 - Custom property based on which element we are hovering
16:10 - Creating a sibling index
17:28 - Using the abs() function to set the distances and do some calculations
24:00 - Debugging
29:00 - Figuring out how to spread them out with transform-origin

#css

--

Come hang out with other dev's in my Discord Community
💬 discord.gg/nTYCvrK

Keep up to date with everything I'm up to
www.kevinpowell.co/newsletter

Come hang out with me live every Monday on Twitch!
📺 www.twitch.tv/kevinpowellcss

---

Help support my channel
👨‍🎓 Get a course: www.kevinpowell.co/courses
👕 Buy a shirt: teespring.com/stores/making-t...
📽️ Join as a channel member: youtube.com/channel/UCJZv4d5rbIKd4QHMPkcABCw/join
💖 Support me on Patreon: www.patreon.com/kevinpowell or through YT memberships: Join this channel to get access to perks:
youtube.com/channel/UCJZv4d5rbIKd4QHMPkcABCw/join

---

My editor: VS Code - 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.

Bluesky: bsky.app/profile/kevinpowell.co
Codepen: codepen.io/kevinpowell/
Github: github.com/kevin-powell

---

And whatever you do, don't forget to keep on making your corner of the internet just a little bit more

コメント