Follow

RT T. Afif @ CSS Challenges
💡 CSS Tip!
Add a diagonal infinite shadow to your rounded image.
✅ No extra element (only the image tag)
✅ No pseudo-elements
✅ Optimized with CSS variables
Demo: codepen.io/t_afif/full/mdvaeoq via @CodePen

<div class="rsshub-quote">
T. Afif @ CSS Challenges: 💡 CSS Tip!
Add an infinite shadow to your image in any direction using a few lines of code
✅ No extra element (only the <img> tag)
✅ No pseudo-elements
✅ Only 2 CSS properties
✅ Works with rounded corners
Demo: codepen.io/t_afif/full/XWoNdGK via @CodePen

</div>
:sys_twitter: twitter.com/ChallengesCss/stat

· · Twitter · 0 · 0 · 0
Sign in to participate in the conversation
小森林

每个人都有属于自己的一片森林,也许我们从来不曾走过,但它一直在那里,总会在那里。迷失的人迷失了,相逢的人会再相逢。愿这里,成为属于你的小森林。