Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swiper.js The slide does not change #632

Open
quranmehr opened this issue Mar 2, 2024 · 0 comments
Open

Swiper.js The slide does not change #632

quranmehr opened this issue Mar 2, 2024 · 0 comments

Comments

@quranmehr
Copy link

quranmehr commented Mar 2, 2024

Title: Issue with Applying Styles in Version 8.3.0
framework7-bundle.js
Text:
Hello,

I'm facing an issue with applying styles in version 8.3.0 and I need your help to solve it. In version 7.1.5, the following code worked perfectly, but after upgrading to version 8.3.0, this code doesn't execute:

html
Copy code
<style>
.scroll {
overflow: auto;
height: 100%;
}
</style>

      <style>
          .swiper {
            width: 100%;
            height: 100%;
          }
      
          .swiper-slide {
            text-align: center;
            font-size: 18px;
            background: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
          }
      
          .swiper-slide img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
          .scroll{
              overflow: auto;
              height: 100%;
          }
      </style>

<div class="swiper mySwiper">
    <div class="swiper-wrapper">
        <div class="swiper-slide">
            <div class="scroll">Slide 1
                ...
            </div>
        </div>
        <div class="swiper-slide">
            <div class="scroll">Slide 2
                ...
            </div>
        </div>
        <div class="swiper-slide">
            <div class="scroll">Slide 3
                ...
            </div>
        </div>
    </div>
</div>
        var swiper = app.swiper.create('.swiper', {
          speed: 100,	
          spaceBetween: 10,
          allowTouchMove: true,	
          initialSlide: 0,			
          loop: true,
        })

Could you please advise on why the styles are not being applied in the new version and how I can resolve this issue?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant