Skip to content

Description issue #123

@AitorRodriguex

Description

@AitorRodriguex

Hello, first of all, thank you for all this work. Chocolat is fantastic.

I have one doubt.

I am using the chocolat.js for an image gallery. I use it inside a div with the option: container: document.querySelector

I would like the description of the image to be extracted from the accompanying text instead of the 'title' attribute.

Ex:

<div class = "image">

<a class="chocolat-image" href="https://images.pexels.com/photos/4558481/pexels-photo-4558481.jpeg" title="Lore ipsum.">
<img src = "https://images.pexels.com/photos/4558481/pexels-photo-4558481.jpeg" />
</a>

<span class = "caption">
In non ultricies magna, nec vulputate pain. Aenean sollicitudin ex id lectus fermentum, a tempus lacus cursus.
<span>

</div>

Many thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions