Ask Your Question
3

How can the last item be displayed fully while only half of the right item is shown in slick slider?

asked 2022-12-19 11:00:00 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-02-20 11:00:00 +0000

lakamha gravatar image

To display the last item fully and show only half of the right item in slick slider, you can use the following CSS code:

.slick-slide:last-child {
    margin-right: 50%;
}

This will add a margin to the last slide, pushing it to the left and showing only half of the next slide on the right. Adjust the percentage value to achieve the desired effect.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-12-19 11:00:00 +0000

Seen: 12 times

Last updated: Feb 20 '22