Resize a slide on display

Asked on January 25, 2016 in Development.

I would like to resize a slider every time another slide is shown. At the moment the biggest slide is shown which results in very large white space on slides with less content.

Is there a function from the core I can call with js or jquery?


Quinten Peuling Layers User
  • Possible Answers to Your Question:

  • 1 Answer(s)
    Answered on February 2, 2016.

    Hi there,

    The closest thing in core is AutoHeight so you would need to implement custom JS and options to manage this, or use a different slider (not sure if you are developing an extension or just building a site).  We do not shrink or expand individual slides as this simply does not work with how the main slider container and layout options work, not to mention it would lead to a “jerking” of all the page content below your slider that can be very offputting to your site visitors, especially if auto-sliding is enabled.