Best lib in the world for fornt-end developer
Install shadowMr2 with npm
npm install shadowMr2 --save
html code:
<img src="your img url" width="300px" alt="this is image" class="shadowM2">
<img src="your img url" width="300px" alt="this is image" class="shadowM2">
<script type="module" src="index.js"></script>
----------------------------------------------------------------
js code:
import { shadowM2 } from "shadowmr2"
shadowM2({
shadow_type:'soft', //options : hard , soft
padding: true
})