This example shares the idea of box shadow on the left side of an element only. You can adjust the values of CSS box shadow property with the box shadow generator to get your desired effect.
Box Shadow Properties
Inset
Color
Shadow 0
Box Shadow
Presets
Element Properties
Color