I
I
Islam Ibakaev2017-05-15 06:51:29
css
Islam Ibakaev, 2017-05-15 06:51:29

Flickity slider height dependent on slide content?

Can this be achieved? Here , the example explicitly specifies the height of the slider.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Tokmakov, 2017-05-15
@devellopah

And you only had enough to read one page?
Go to the next Options tab and see setGallerySize (section 4) https://flickity.metafizzy.co/options.html#setgall...

A
Andrey Goncharov, 2017-05-15
@agmegadeth

The height can be omitted for the slide, and the slider will adjust by default to the height of the highest slide. There is an adaptiveHeight option, if you need to change the height of the slider depending on the active slide.
It seems to me that your content is images, and if the slider is initialized before the images are loaded, then the height of the slider collapses. There is an option imagesLoaded: true for this.
In short, see the available options - everything is chewed there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question