https://thebabydino.github.io/
❇️ ko-fi.com/anatudor
❇️ www.patreon.com/c/anatudor
#CSS #SVG
❇️ ko-fi.com/anatudor
❇️ www.patreon.com/c/anatudor
#CSS #SVG
It took 3 weeks to write and being able to come up with the solution in there is the result of years of work. Just under the svg-filter tag, there are hundreds of demos on my @codepen.io codepen.io/thebabydino/...
#SVG
It took 3 weeks to write and being able to come up with the solution in there is the result of years of work. Just under the svg-filter tag, there are hundreds of demos on my @codepen.io codepen.io/thebabydino/...
#SVG
Talent500, who have a gold check account on twitter, copied a few bits of my article that I worked for 3 weeks on. Could not even be bothered to copy enough to get to a working solution, stopped at intermediary steps. And "forgot" to give credit.
Talent500, who have a gold check account on twitter, copied a few bits of my article that I worked for 3 weeks on. Could not even be bothered to copy enough to get to a working solution, stopped at intermediary steps. And "forgot" to give credit.
Can you guess without looking up?
www.youtube.com/watch?v=qc98...
Too cryptic?
www.youtube.com/watch?v=vYNA...
Not enough?
www.youtube.com/watch?v=CO8C...
Oh, come on!
www.youtube.com/watch?v=WBs3...
Can you guess without looking up?
www.youtube.com/watch?v=qc98...
Too cryptic?
www.youtube.com/watch?v=vYNA...
Not enough?
www.youtube.com/watch?v=CO8C...
Oh, come on!
www.youtube.com/watch?v=WBs3...
Guess I'm just too used to the guardrails because my most common uses are for angles and similar.
Guess I'm just too used to the guardrails because my most common uses are for angles and similar.
We can get the sign of the difference
--sgn: sign(100vw - var(-cutoff))
a bit value (0 if sign is -1 or 0, 1 otherwise)
--bit: round(down, .5*(1 + var(--sgn)))
finally
border-radius: calc(var(--bit)*8px)
#tinyCSStip #CSS
We can get the sign of the difference
--sgn: sign(100vw - var(-cutoff))
a bit value (0 if sign is -1 or 0, 1 otherwise)
--bit: round(down, .5*(1 + var(--sgn)))
finally
border-radius: calc(var(--bit)*8px)
#tinyCSStip #CSS
This is what subgrid was made for!
#CSS
This is what subgrid was made for!
#CSS
Full 3D form option vs. weird 2D shape. Which do you prefer?
#CSS
Full 3D form option vs. weird 2D shape. Which do you prefer?
#CSS
(you have no idea how grateful I am this is happening and how relieved I am to have something to force me to take a break...)
(you have no idea how grateful I am this is happening and how relieved I am to have something to force me to take a break...)
❇️ ko-fi.com/post/CSS-cus...
❇️ www.patreon.com/posts/pure-c...
#CSS
❇️ ko-fi.com/post/CSS-cus...
❇️ www.patreon.com/posts/pure-c...
#CSS
Signed, an authentic Transylvanian vampire.
And lots of metal bands agree. See Kreator's most recent single, Tränenpalast, inspired by the 1977 horror Suspiria, Iron Maiden's The Red and the Black. Or Red Before Black by Cannibal Corpse.
Signed, an authentic Transylvanian vampire.
And lots of metal bands agree. See Kreator's most recent single, Tränenpalast, inspired by the 1977 horror Suspiria, Iron Maiden's The Red and the Black. Or Red Before Black by Cannibal Corpse.
(for context www.reddit.com/r/css/commen...)
#CSS
(for context www.reddit.com/r/css/commen...)
#CSS
How would you code this (pad non-square image to square with blurred version of itself) using:
✳️ a single `img` elem, no wrappers/ pseudos
✳️ at most 4 #CSS declarations (without the grid layout)
✳️ an #SVG `filter`
How would you code this (pad non-square image to square with blurred version of itself) using:
✳️ a single `img` elem, no wrappers/ pseudos
✳️ at most 4 #CSS declarations (without the grid layout)
✳️ an #SVG `filter`
Live demo on @codepen.io: codepen.io/thebabydino/...
How would you do this? Try to think about it before checking my solution!
Live demo on @codepen.io: codepen.io/thebabydino/...
How would you do this? Try to think about it before checking my solution!
A little @codepen.io demo:
codepen.io/thebabydino/...
Enjoy!
(created for my grainy gradients article frontendmasters.com/blog/grainy-...)
A little @codepen.io demo:
codepen.io/thebabydino/...
Enjoy!
(created for my grainy gradients article frontendmasters.com/blog/grainy-...)
Super Simple Full-Bleed & Breakout Styles
frontendmasters.com/blog/super-s... - my take on an old problem using modern CSS solutions.
Using a spooky made up Halloween recipe to illustrate concepts.
PS @chriscoyier.net told me to be proud of it 😛
#CSS
Super Simple Full-Bleed & Breakout Styles
frontendmasters.com/blog/super-s... - my take on an old problem using modern CSS solutions.
Using a spooky made up Halloween recipe to illustrate concepts.
PS @chriscoyier.net told me to be proud of it 😛
#CSS
#SVG #filter
#SVG #filter
linear-gradient(in hsl 90deg, #fb8500, #219ebc)
But... you know, should be animated.
The image used is the one below. But the solution should work for any image of any size/ aspect-ratio.
If you're a Cheetah+ supporter on Ko-fi/ Patreon, you know where to find my solution 😼
#CSS
How would you do this? A gradient tinted image, the gradient tint gradually disappearing from left to right on hover, then coming back from left to right on exit.
✨ single `img` elem (so no pseudos)
✳️ cross-browser
🚫 no JS
🚫 no SVG filters
#CSS
How would you do this? A gradient tinted image, the gradient tint gradually disappearing from left to right on hover, then coming back from left to right on exit.
✨ single `img` elem (so no pseudos)
✳️ cross-browser
🚫 no JS
🚫 no SVG filters
#CSS