Skip to content

Feat: Allow the CSS for visible/hidden slides to be overridden in settings#324

Open
eyesofjeremy wants to merge 2 commits intoarielsalminen:masterfrom
eyesofjeremy:feature-css-optional
Open

Feat: Allow the CSS for visible/hidden slides to be overridden in settings#324
eyesofjeremy wants to merge 2 commits intoarielsalminen:masterfrom
eyesofjeremy:feature-css-optional

Conversation

@eyesofjeremy
Copy link
Copy Markdown

This allows the CSS applied to visible and hidden slides to be overridden via the options.

In my case, I just want opacity to be applied. This change allows me to write the following jQuery code:

    $('#slideshow').responsiveSlides({
        'visibleStyle' : {"opacity": 1}, // Object: jQuery CSS
        'hiddenStyle' : {"opacity": 0} // Object: jQuery CSS
    });

... and only that CSS is applied when switching between visible and hidden slides.

* master:
  Updates changelog
  Added compatibility with jQuery 3.0.0 (changed size() to length).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant