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

images just show when i resize the project #263

Open
JLHMV19 opened this issue Oct 4, 2023 · 4 comments
Open

images just show when i resize the project #263

JLHMV19 opened this issue Oct 4, 2023 · 4 comments

Comments

@JLHMV19
Copy link

JLHMV19 commented Oct 4, 2023

Hello, im trying to show a carousel inside a fuse card, the carousel only works when I resize the page, im tried to search for similar issues here but i havent found anything, my configuration of owl is the next

customOptions: OwlOptions = {
loop: true,
mouseDrag: true,
touchDrag: false,
pullDrag: true,
dots: false,
navSpeed: 700,
navText: ['', ''],
responsive: {
0: {
items: 1
},
400: {
items: 1
},
740: {
items: 1
},
940: {
items: 1
},
1200: {
items: 1
}
},
nav: true,
autoplay: true,
autoplayTimeout: 5000
};

this is the carousel when I enter the page

capturaduda

@JLHMV19 JLHMV19 closed this as completed Oct 4, 2023
@JLHMV19 JLHMV19 reopened this Oct 4, 2023
@vitalii-andriiovskyi
Copy link
Owner

@JLHMV19

It's hard to tell what's wrong with your case.
Mostly the similar problem was because of slides ids: wrong type or incorrect values. Here some notes about it: https://github.com/vitalii-andriiovskyi/ngx-owl-carousel-o#setting-custom-slides-ids
Maybe this is your case.

It would be great if you share the code, so I could reproduce the issue.

@MilanObrenovic
Copy link

@JLHMV19

It's hard to tell what's wrong with your case. Mostly the similar problem was because of slides ids: wrong type or incorrect values. Here some notes about it: https://github.com/vitalii-andriiovskyi/ngx-owl-carousel-o#setting-custom-slides-ids Maybe this is your case.

It would be great if you share the code, so I could reproduce the issue.

i'm having the same problem. The carousel items don't get initialized properly on page load. Only when the page size changes or when i refresh the page on desktop. On mobile, it's even worse. The carousel displays incorrect amount of items, and page refresh doesnt fix it. Adding [id] doesnt fix this bug

@naveenatla9866
Copy link

can someone please help me with the same issue.

@vitalii-andriiovskyi
Copy link
Owner

@naveenatla9866 can you share your code?

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

4 participants