#cssclippath — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #cssclippath, aggregated by home.social.
-
RE: https://mastodon.social/@firefoxwebdevs/116160201522801183
Exactly 6 years after my "Unfortunately, `clip-path: path()` is Still a No-Go" post got published https://css-tricks.com/unfortunately-clip-path-path-is-still-a-no-go/
#CSS #cssClipPath #coding #frontend #web #dev #webDev #webDevelopment #code
-
RE: https://mastodon.social/@firefoxwebdevs/116160201522801183
Exactly 6 years after my "Unfortunately, `clip-path: path()` is Still a No-Go" post got published https://css-tricks.com/unfortunately-clip-path-path-is-still-a-no-go/
#CSS #cssClipPath #coding #frontend #web #dev #webDev #webDevelopment #code
-
Simple pricing cards - a demo I made on @codepen: https://codepen.io/thebabydino/pen/ZYOJgyW
I've posted even cooler pure #CSS ones (non-rectangular shapes + rounded corners, glassmorphism + border effects combined) for Ko-fi & Patreon supporters:
❇️ https://ko-fi.com/anatudor/tiers
❇️ https://www.patreon.com/c/anatudor/membership
#cssGrid #cssClipPath #clipping #code #web #dev #webDev #webDevelopment #coding #frontend
-
Simple pricing cards - a demo I made on @codepen: https://codepen.io/thebabydino/pen/ZYOJgyW
I've posted even cooler pure #CSS ones (non-rectangular shapes + rounded corners, glassmorphism + border effects combined) for Ko-fi & Patreon supporters:
❇️ https://ko-fi.com/anatudor/tiers
❇️ https://www.patreon.com/c/anatudor/membership
#cssGrid #cssClipPath #clipping #code #web #dev #webDev #webDevelopment #coding #frontend
-
Clip element on #scroll - a little pure #CSS demo I made on @codepen https://codepen.io/thebabydino/pen/vEGBOrg
Just scroll-driven animation magic 🪄✨ - no other tricks.
#cssScrollAnimation #code #coding #web #dev #webDev #webDevelopment #cssClipPath #cssGrid #cssLayout
-
Clip element on #scroll - a little pure #CSS demo I made on @codepen https://codepen.io/thebabydino/pen/vEGBOrg
Just scroll-driven animation magic 🪄✨ - no other tricks.
#cssScrollAnimation #code #coding #web #dev #webDev #webDevelopment #cssClipPath #cssGrid #cssLayout
-
A little thing: candy 🍬 ghost 👻 buttons, 3 techniques in one @codepen demo
https://codepen.io/thebabydino/pen/ExvNBRYDetailed explanation of the how behind in this @csstricks post https://css-tricks.com/css-ing-candy-ghost-buttons/
Bonus: a hover animated, Chrome-only version https://codepen.io/thebabydino/pen/VwzpMxV
#CSS #cssGradient #cssMask #coding #web #dev #webDev #webDevelopment #code #frontend #clipPath #cssClipPath
-
A little thing: candy 🍬 ghost 👻 buttons, 3 techniques in one @codepen demo
https://codepen.io/thebabydino/pen/ExvNBRYDetailed explanation of the how behind in this @csstricks post https://css-tricks.com/css-ing-candy-ghost-buttons/
Bonus: a hover animated, Chrome-only version https://codepen.io/thebabydino/pen/VwzpMxV
#CSS #cssGradient #cssMask #coding #web #dev #webDev #webDevelopment #code #frontend #clipPath #cssClipPath
-
Cool concave rounding header component on @codepen: https://codepen.io/thebabydino/pen/azOgOKE
#CSS #clipPath #cssClipPath #cssMask #cssGradient #code #coding #frontend #web #dev #webDevelopment #webDev
-
Cool concave rounding header component on @codepen: https://codepen.io/thebabydino/pen/azOgOKE
#CSS #clipPath #cssClipPath #cssMask #cssGradient #code #coding #frontend #web #dev #webDevelopment #webDev
-
Here's a little pure #CSS demo I made on @codepen a while back: clip element on #scroll https://codepen.io/thebabydino/pen/vEGBOrg
(using scroll-driven animations, so support may still be spotty)
#cssScrollAnimation #scrollAnimation #clipPath #cssClipPath #code #coding #web #dev #webDevelopment #webDev #frontend #cssAnimation #scrollEffect
-
Here's a little pure #CSS demo I made on @codepen a while back: clip element on #scroll https://codepen.io/thebabydino/pen/vEGBOrg
(using scroll-driven animations, so support may still be spotty)
#cssScrollAnimation #scrollAnimation #clipPath #cssClipPath #code #coding #web #dev #webDevelopment #webDev #frontend #cssAnimation #scrollEffect
-
Because someone just hearted this demo I made over half a decade ago on @codepen:
https://codepen.io/thebabydino/pen/bGEBObR
It's a pure #CSS Platonic solids gallery. They animate on hover/ tap. All is computed, there are no magic numbers.
#Maths #3D #Geometry #trigonometry #clipPath #cssClipPath #code #frontend #web #dev #webDev #webDevelopment #coding #transform #cssTransform #css3D
-
Because someone just hearted this demo I made over half a decade ago on @codepen:
https://codepen.io/thebabydino/pen/bGEBObR
It's a pure #CSS Platonic solids gallery. They animate on hover/ tap. All is computed, there are no magic numbers.
#Maths #3D #Geometry #trigonometry #clipPath #cssClipPath #code #frontend #web #dev #webDev #webDevelopment #coding #transform #cssTransform #css3D
-
BTW, the CSS is heavily commented. And I've changed the images to something a bit more fitting for this time of year.
https://codepen.io/thebabydino/details/WbrjrZM
And now you can tell what gave me the idea for yesterday's challenge https://mastodon.social/@anatudor/115337483292849914
#CSS #Maths #layout #cssLayout #cssGrid #trigonometry #code #coding #frontend #transform #cssTransform #cssClipPath #clipping #clipPath #containerQueries #containerQuery #webDevelopment #web #dev #webDev
-
BTW, the CSS is heavily commented. And I've changed the images to something a bit more fitting for this time of year.
https://codepen.io/thebabydino/details/WbrjrZM
And now you can tell what gave me the idea for yesterday's challenge https://mastodon.social/@anatudor/115337483292849914
#CSS #Maths #layout #cssLayout #cssGrid #trigonometry #code #coding #frontend #transform #cssTransform #cssClipPath #clipping #clipPath #containerQueries #containerQuery #webDevelopment #web #dev #webDev
-
Because this got asked on reddit https://www.reddit.com/r/css/comments/1o069yi/comment/ni8evf4/
Made a demo with various options for angled grid columns. Uses mathematical computations to ensure all fits just right all the time, regardless of viewport or number of columns.
On @codepen https://codepen.io/thebabydino/pen/WbrjrZM
Enjoy!
#CSS #Maths #layout #cssLayout #cssGrid #trigonometry #code #coding #frontend #transform #cssTransform #cssClipPath #clipping #clipPath #containerQueries #containerQuery #webDevelopment #web #dev #webDev
-
Because this got asked on reddit https://www.reddit.com/r/css/comments/1o069yi/comment/ni8evf4/
Made a demo with various options for angled grid columns. Uses mathematical computations to ensure all fits just right all the time, regardless of viewport or number of columns.
On @codepen https://codepen.io/thebabydino/pen/WbrjrZM
Enjoy!
#CSS #Maths #layout #cssLayout #cssGrid #trigonometry #code #coding #frontend #transform #cssTransform #cssClipPath #clipping #clipPath #containerQueries #containerQuery #webDevelopment #web #dev #webDev
-
Pure #CSS #3D chamfering sequence on @codepen: tetrahedron → chamfered tetrahedron → cube and back https://codepen.io/thebabydino/pen/MWVJVKE
#geometry #maths #css3D #CSSclipPath #cssTransform #cssTransforms #coding #web #dev #webDev #webDevelopment
-
Pure #CSS #3D chamfering sequence on @codepen: tetrahedron → chamfered tetrahedron → cube and back https://codepen.io/thebabydino/pen/MWVJVKE
#geometry #maths #css3D #CSSclipPath #cssTransform #cssTransforms #coding #web #dev #webDev #webDevelopment
-
A little thing I made on @codepen.io: breathing with `shape()`
https://codepen.io/thebabydino/pen/vEEqMWo`shape()` is supported in Chrome 135+ and Safari 18.4+.
Firefox 126+ supports it for simple shapes (but not for this demo) when setting thelayout.css.basic-shape-shape.enabled to true in about:config.
#CSS #clipPath #cssClipPath #animation #cssShapes #code #coding #clipping #web #dev #webDevelopment #webDev #frontend
-
A little thing I made on @codepen.io: breathing with `shape()`
https://codepen.io/thebabydino/pen/vEEqMWo`shape()` is supported in Chrome 135+ and Safari 18.4+.
Firefox 126+ supports it for simple shapes (but not for this demo) when setting thelayout.css.basic-shape-shape.enabled to true in about:config.
#CSS #clipPath #cssClipPath #animation #cssShapes #code #coding #clipping #web #dev #webDevelopment #webDev #frontend
-
Someone asked how to create such cross-browser wave dividers that keep the same height as the width changes, so here's my take on it https://www.reddit.com/r/css/comments/1kcmabf/comment/mq5ck6m/
Live on @codepen https://codepen.io/thebabydino/pen/PwwQxdb?editors=0100
`mask` is another option, but needs an extra container and container query units, so not as well supported, plus it wouldn't be exactly the same shape.
#CSS #clipPath #cssClipPath #Sass #maths #cssMaths #code #coding #web #dev #webDevelopment #webDev #frontend
-
Someone asked how to create such cross-browser wave dividers that keep the same height as the width changes, so here's my take on it https://www.reddit.com/r/css/comments/1kcmabf/comment/mq5ck6m/
Live on @codepen https://codepen.io/thebabydino/pen/PwwQxdb?editors=0100
`mask` is another option, but needs an extra container and container query units, so not as well supported, plus it wouldn't be exactly the same shape.
#CSS #clipPath #cssClipPath #Sass #maths #cssMaths #code #coding #web #dev #webDevelopment #webDev #frontend
-
#tinyCSStip `clip-path` or `mask` are applied after `filter`.
This means we cannot clip/ mask, then add a `drop-shadow()` on the same element for the clipped/ masked shape.
We need to apply the `filter` on a parent of the clipped/ masked (pseudo-)element.
https://codepen.io/thebabydino/pen/BRROzw
#CSS #filter #cssFilter #clipPath #clipping #cssClipPath #cssMask #coding #frontend #web #dev #webDev #webDevelopment #code
-
#tinyCSStip `clip-path` or `mask` are applied after `filter`.
This means we cannot clip/ mask, then add a `drop-shadow()` on the same element for the clipped/ masked shape.
We need to apply the `filter` on a parent of the clipped/ masked (pseudo-)element.
https://codepen.io/thebabydino/pen/BRROzw
#CSS #filter #cssFilter #clipPath #clipping #cssClipPath #cssMask #coding #frontend #web #dev #webDev #webDevelopment #code
-
Here's a quick breathing box demo with `clip-path: shape()` on @codepen.io: https://codepen.io/thebabydino/pen/ZYENVOQ
Working in Chrome 135 and Safari 18.4! 🥳🎉
#CSS #clipPath #cssClipPath #coding #web #dev #webDev #webDevelopment #code #frontend
-
Here's a quick breathing box demo with `clip-path: shape()` on @codepen.io: https://codepen.io/thebabydino/pen/ZYENVOQ
Working in Chrome 135 and Safari 18.4! 🥳🎉
#CSS #clipPath #cssClipPath #coding #web #dev #webDev #webDevelopment #code #frontend
-
I haven't had the time to do anything for this week's #CodePenChallenge yet, but here are some older card demos:
From 5+ years ago: pure #CSS 1 element bevel cards! No SVG or images save for the cat, real (semi)transparency inside borders and all.
See it on @codepen https://codepen.io/thebabydino/pen/ZEGNNQz
#clipPath #cssClipPath #code #coding #web #dev #webDev #webDevelopment #frontend #cssPattern #cssPatterns #cssGradient
-
I haven't had the time to do anything for this week's #CodePenChallenge yet, but here are some older card demos:
From 5+ years ago: pure #CSS 1 element bevel cards! No SVG or images save for the cat, real (semi)transparency inside borders and all.
See it on @codepen https://codepen.io/thebabydino/pen/ZEGNNQz
#clipPath #cssClipPath #code #coding #web #dev #webDev #webDevelopment #frontend #cssPattern #cssPatterns #cssGradient
-
Know how border-image & border-radius don't play nice together?
(interactive https://codepen.io/thebabydino/pen/jxZyed)
#tinyCSStip there's a workaround IF corner radius ≤ border-width: use inset() clip-path + a round value!
clip-path: inset(0 round $r)
@codepen demo: https://codepen.io/thebabydino/pen/qBELJGY?editors=1100
(and yes, this is a tip I first shared on twitter over half a decade ago https://x.com/anatudor/status/1219916121341644807 )
#CSS #clipPath #cssClipPath #coding #web #dev #webDev #webDevelopment #code #frontend #borderImage #borderRadius
-
Know how border-image & border-radius don't play nice together?
(interactive https://codepen.io/thebabydino/pen/jxZyed)
#tinyCSStip there's a workaround IF corner radius ≤ border-width: use inset() clip-path + a round value!
clip-path: inset(0 round $r)
@codepen demo: https://codepen.io/thebabydino/pen/qBELJGY?editors=1100
(and yes, this is a tip I first shared on twitter over half a decade ago https://x.com/anatudor/status/1219916121341644807 )
#CSS #clipPath #cssClipPath #coding #web #dev #webDev #webDevelopment #code #frontend #borderImage #borderRadius
-
How do you get a zoom effect on an `img`? So that you still have the right click `img` menu and also don't need any extra element?
Here's how on @codepen: https://codepen.io/thebabydino/pen/BaGYPPV
Prompted by coming across a demo that gets the effect with a `div` wrapped in an `overflow: hidden` parent.
#CSS #clip #clipPath #clipping #cssClipPath #zoom #zoomEffect #code #coding #frontend #web #webDev #dev #webDevelopment
-
How do you get a zoom effect on an `img`? So that you still have the right click `img` menu and also don't need any extra element?
Here's how on @codepen: https://codepen.io/thebabydino/pen/BaGYPPV
Prompted by coming across a demo that gets the effect with a `div` wrapped in an `overflow: hidden` parent.
#CSS #clip #clipPath #clipping #cssClipPath #zoom #zoomEffect #code #coding #frontend #web #webDev #dev #webDevelopment