Skip to content

slick including unintended spacing in the end  #1872

Open
@vishnupeas

Description

@vishnupeas

Problem for the homepage
Screenshot_20200814_120915
I have styling for Navbar set with

.nav-links {
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            opacity: 0;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            row-gap: 2rem;
            width: 100vw;
            height: 100vh;
            font-size: 2rem;
            color: #fff;
            background: #272727;
            transition: opacity 0.5s 0.5s, clip-path 0.7s 0.5s;
            clip-path: circle(200px at top right);
}

when navbar input is checked(hamburger),

.menu-btn:checked ~ .nav-links {
            opacity: 1;
            clip-path: circle(100% at center);
}

I have this working perfectly for all my pages except homepage which contains react-slick, and I found out its the one which is actually causing the problem because when I remove this <Slider {...settings}>{items}</Slider> it works perfectly just like other pages fully covering 100vh but somehow react-slick is causing the problem. I have tried removing all the styling done manually to check if it was working, even shortlisting the settings was also not able to do anything.

const settings = {
      PauseOnHover: true,
      dots: true,
      infinite: true,
      autoplay: true,
      swipeToSlide: true,
      speed: 1300,
      slidesToShow: 1,
      slidesToScroll: 1,
      arrows: true,
   };

When working perfectly
Screen Shot 2020-08-14 at 12 19 01

To be noted this happens only in mobile browsers, I have tested this in Desktop browsers (chrome,mozilla) looking for responsiveness and it works perfectly but soon as I get this page running in all my android phones this bug just happens for no reason

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions