Skip to content

Jcarousel captions strange behavior #853

Description

@bondweb

Hi there I add

	$('.jcarousel').on('jcarousel:visiblein', 'li', function(event, carousel) {
var caption = $(this).find("img").prop("alt");
$('.jcarousel-caption').text(caption);

in the jcarousel.basic.js to show alt text like an image caption

I also add

in the carousel html file

<h3 class="jcarousel-caption"></h3>

It's working, but jcarosel doesn't shows the first image caption after the page loading.

jcarousel shows the first image caption only after click the jcarousel-control-prev and jcarousel-control-next

There's anyone can help me to understand why?

Thanks in advance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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