No text duplication single div 3D + stroke effects (double stroke, gradient stroke or stroke with shadow) - it's all in the magic of SVG filters!
Live on @codepen:
https://codepen.io/thebabydino/pen/OJGQBxo
https://codepen.io/thebabydino/pen/bGJvOmr
https://codepen.io/thebabydino/pen/YzMMNKE
https://codepen.io/thebabydino/pen/bGybXVj
No text duplication double neon with some SVG filter magic (if you look closely, it's not just a white outline with a glow)
No text duplication layered 3D effect with SVG filter magic
Live on @codepen :
https://codepen.io/thebabydino/pen/LYvQzve
https://codepen.io/thebabydino/pen/vYMdzVy
In Bucharest, there used to be a cake shop called Candy Cat (logo below). More recently, there's a candy
store (last image).
3D + multilayer + other effects (halftone, inner shadow) with no text duplication, just some SVG filter magic
Live on @codepen:
https://codepen.io/thebabydino/pen/abMvzoo
https://codepen.io/thebabydino/pen/PoLGEPM
https://codepen.io/thebabydino/pen/LYvzmLW
https://codepen.io/thebabydino/pen/PogJybr
Multi layers with no text duplication. Just the magic of SVG filters. Live on @codepen:
https://codepen.io/thebabydino/pen/PoVMoby
https://codepen.io/thebabydino/pen/XWOvWqM
https://codepen.io/thebabydino/pen/WNmQpQJ
https://codepen.io/thebabydino/pen/rNbKOpL
You might think all it takes here is `background-clip: text`, `text-stroke` and `text-shadow`.
Except it doesn't work! `text-shadow` gets drawn on top of the polka dots/ hash lines background in this case!
SVG filter magic to the rescue!
Here's the solution on @codepen https://codepen.io/thebabydino/pen/QWPqQpN
A few more *no text duplication* slice/ offset demos on @codepen with SVG filter magic for this week's #CodePenChallenge
https://codepen.io/thebabydino/pen/vYbwvyY
https://codepen.io/thebabydino/pen/YzMpjZR
https://codepen.io/thebabydino/pen/ZEZXaZZ
https://codepen.io/thebabydino/pen/NWmbyZQ
Same text effect:
pure CSS https://codepen.io/thebabydino/pen/abMYoWX
with an SVG filter https://codepen.io/thebabydino/pen/poYvgzX
Pure CSS version obviously requires a wrapper and if you're thinking why is the SVG version so overly complicated, well... browser bugs. Ironically, not even SVG, but CSS bugs...
`filter: drop-shadow()` is great for non-rectangular shapes.
But there are a couple of frustrating issues:
`filter` is applied before `clip-path`
set `filter` on parent
blur inconsistent with that of box/ text shadow
set it to half the value
Resources:
https://codepen.io/thebabydino/pen/BRROzw
https://dbaron.org/log/20110225-blur-radius
https://codepen.io/thebabydino/pen/WNPwzGg
Retro-striped text with #SVG filters - detailed step by step, #CodePen demos & more
https://www.patreon.com/posts/retro-striped-97563502
(final, link for all, not just patrons)
if you combined the distance of all of the drop shadow you've ever applied, how long do you think it would be?
#design #css #dropshadow