nishanths/zoom.js

Adding image description

Closed this issue · 3 comments

If you could please add a data-description or like field to describe and show the users what the image is about. Thanks

would this be similar to the title and alt attributes? where would the data-description text be displayed?

Yeah it would be the same as those. Although I don't know if everyone would want to show the title or not. Personally I'd like to see it below the image.

True, not everyone would expect that. For those who would like a caption, it would be simple to do:

<figure>
  <img src="xyz.png">
  <figcaption>description of image</figcaption>
</figure>

or something similar, and style it with CSS.

I would like to keep this plugin minimal, and think it should not be the responsibility of an image zooming plugin to add captions. :)