Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

165
Views
Enlarge the first slide of a carousel

I tried to create a carousel as follows. But I couldn't make it work. I also tried to use Center Mode in the slick carousel. But it only applies to the slide in the middle. If there is a method or library that can enlarge the first slide in this way, please indicate. thank you. The carousel i want

about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

You can maybe look into adding an "active" class to an element of the slide - so then you can apply appropriate CSS to the active class and it will only affect the active element. This means that one of the images will be "active" and you can do whatever to it, and when it slides another will become "active" and inherit the properties, whilst the one from before will lose them.

https://www.w3schools.com/howto/howto_js_active_element.asp

about 4 years ago · Juan Pablo Isaza Report

0

Independed of your actual slide usecase you can target the first element among a group of siblings with the css :first-child pseudo class (see https://developer.mozilla.org/en-US/docs/Web/CSS/:first-child).

Ive added a simple example of how to use it.

To transfer it to your swiper you will have to apply the :first-child pseudo class to the class wrapping your individual slides.

.wrapper {
  display: flex;
}

.entry {
  font-size: 15px;
}

.entry:first-child {
  font-size: 20px;
}
<div class="wrapper">
  <div class="entry">Entry</div>
  <div class="entry">Entry</div>
  <div class="entry">Entry</div>
  <div class="entry">Entry</div>
</div>

about 4 years ago · Juan Pablo Isaza Report

0

You can achieve this design through these codes:

for the first image

 .slick-slide.slick-current.slick-active {        
   .your class {
        width: 100%;   
    }
 }

for the following images

.slick-slide.slick-active {  
  .your class {
        width: 80%;   
    }
 }
 

you can add first-child if you like to design specific class

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!