How to use light gallery for images?



I have been trying to create a section to one of our landing pages with the similar image layout as in Light Gallery feature ie the “Gallery with Animated Thumbnails

Tried everything they mentioned here, but it doesn’t seem to work?

1. Installed the Javascript
lightGallery(document.getElementById(‘aniimated-thumbnials’), {

  1. Used the “Custom HTML” Content Element and placed the code

Unfortunately, the result looks like this

Note: For img/img1.jpg and img/thumb1.jpg tags both, I have used the image URL from our wordpress media.

Any help will be highly appreciated.