RNRamsey Njireinblog.ramseynjire.me·Mar 3, 2022 · 10 min readCreating Shadows with Pseudo-ElementsUsing Pseudo-Elements for Box Shadows What if I wanted a box-shadow with a linear gradient? I can add a color to the box-shadow property, but I can't define a linear gradient on it. A would work, but not B: A: { /* offset-x | offset-y | blur-radius...00
RNRamsey Njireinblog.ramseynjire.me·Jan 25, 2022 · 4 min readImage Fade Effect Using Pseudo-ElementsHaving images on your page is nice, but what if you want to create a fading effect (like the banner image for this article)? As it turns out, you can easily do this in CSS using ::before and ::after pseudo-elements. That’s what we’ll explore in this ...00