All you need to do is add the
canvasmask.js
script and add a class of mask to each image you want to mask. You also need to provide a PNG file as the mask using thedata-mask
attribute.
<img src="red-panda.jpg" alt="Red panda" class="mask" data-mask="centerblur.png">