How to build an unfolding tooltip with CSS clip-path // HTML & CSS

Опубликовано: 16 Июль 2026
на канале: crayon code
251
10

Learn to build a tooltip with an awesome unfolding effect effects using CSS clip-path in this in-depth episode about HTML & CSS and see how to
✔️ use the CSS clip-path property
✔️ make clip-paths smoothly transitionable
✔️ clip an element using the circle clip-path function
✔️ use the the :focus-within pseudo-class to make it work nicely on mobile devices

⌨️ CODE ⌨️

https://codepen.io/crayon-code/pen/ZE...

🖇️ USEFUL LINKS 🖇️

🔗 CSS custom properties / variables on MDN https://developer.mozilla.org/en-US/d...
🔗 CSS clip-path on MDN https://developer.mozilla.org/en-US/d...
🔗 circle clip-path on MDN https://developer.mozilla.org/en-US/d...
🔗 :focus-within pseudo-class on MDN https://developer.mozilla.org/en-US/d...
🔗 Complete guide to grid layout https://css-tricks.com/snippets/css/c...

🔔 SUBSCRIBE & LIKE 🔔

▶️    / @crayoncode  

⚙️ USEFUL VSCODE EXTENSIONS ⚙️

Live server: https://marketplace.visualstudio.com/...
Bracket Pair Colorizer: https://marketplace.visualstudio.com/...

⏱️ TIMESTAMPS ⏱️

00:00 Markup
00:30 Variable Setup & Basic Styling
01:03 Trigger Styling
01:41 Content Positioning & Styling
02:37 Unfolding effect
03:14 Mobile Device Compatibility
03:28 Additional Trigger Styling

👋 FOLLOW

📸 INSTAGRAM:   / crayon_code  

🏷️ HASHTAGS 🏷️

#html #css​ #clippath #tutorial