nicolas-t/Chocolat

Do something when certain image has been loaded

tonhaarmans opened this issue · 2 comments

I would like to show a whole bunch of text connected to a certain image (and longer then just a caption) when that image has been loaded.

You can use the hook afterImageLoad to detect when an image is loaded, and modify your page accordingly :

Chocolat/dist/index.html

Lines 157 to 159 in 95fc08d

afterImageLoad: function () {
console.log('afterImageLoad hook is called')
},

Closing due to lack of activity.
Feel free to reopen.