3 techniques in 1 video: candy ghost 👻 buttons

Опубликовано: 17 Октябрь 2024
на канале: Ana Tudor
1,783
like

Live demo https://codepen.io/thebabydino/pen/Ex...

00:00 Intro
00:19 Generating the structure
01:43 Base styles
08:47 Method #1
15:06 Method #2
19:41 Method #3
24:30 Bye!

If the work I've been putting out since early 2012 has helped you in any way or you just like it, please consider supporting it to help me continue and stay afloat. You can do so in one of the following ways:

you can be a cool cat 😼🎩 and become a patron on Patreon   / anatudor  

you can make a one time donation via Ko-fi https://ko-fi.com/anatudor

you can make me happy by getting me a gift off my wishlist
🎁🇺🇸 https://www.amazon.com/hz/wishlist/ls...
🎁🇬🇧 https://www.amazon.co.uk/hz/wishlist/...

you can share this to show the world what can be done with CSS these days

Thank you!

---

Resources:

inspiration (https://www.shutterstock.com/image-ve...)

Cool Little CSS Grid Tricks for Your Blog (https://css-tricks.com/cool-little-cs...)

`auto-fit` vs. `auto-fill` (https://codepen.io/thebabydino/full/g...)

box model (https://codepen.io/thebabydino/full/B...)

Layering gradients to follow `border-radius` (https://codepen.io/thebabydino/full/Z...)

Mask Compositing: The Crash Course (https://css-tricks.com/mask-compositi...)

XOR (https://en.wikipedia.org/wiki/Exclusi...)

`mask-clip` (https://developer.mozilla.org/en-US/d...)

`border-image` and `border-radius` don't play nice together (https://codepen.io/thebabydino/full/j...)

`inset()` (https://codepen.io/thebabydino/full/g...)

#css #cssButtons #cssMasking