N
N
Norum2021-08-11 02:39:18
css
Norum, 2021-08-11 02:39:18

How to stretch the active block to the full height of the parent in Owl-carousel?

According to my assignment, the active slide should increase in height, in the end I succeeded, but I ran into a number of problems:

1) .owl-item.center does not want to occupy the entire height of the parent block
2).owl-stage crawls out of the block, as I realized this because I set the .owl-item.center property to transform: translateY(-50%), but the active slider should go up, not ).owl-stage
61130d9d63c5f816035046.jpeg

3) Inactive blocks are not pressed to the bottom . I tried to press through the flexes, it didn’t work out
61130dd12bdaf866193144.jpeg

This is how everything should look
61130e7ddea6a363281884.jpeg

div class="gallery-slider owl-carousel">
            <div class="gal-slide">
                <img src="img/gal-1.jpg" alt="1">
            </div>
            <div class="gal-slide">
                <img src="img/gal-2.jpg" alt="2">
            </div>
            <div class="gal-slide">
                <img src="img/gal-3.jpg" alt="3">
            </div>
            <div class="gal-slide">
                <img src="img/gal-4.jpg" alt="4">
            </div>
            <div class="gal-slide">
                <img src="img/gal-5.jpg" alt="4">
            </div>
            <div class="gal-slide">
                <img src="img/gal-6.jpg" alt="4">
            </div>
        </div>


The site itself cb95142.tmweb.ru

All code https://jsfiddle.net/8ctq7yxa/

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question