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

CSS class glide__slide missing #31

Open
M-Blobby opened this issue Nov 12, 2023 · 0 comments
Open

CSS class glide__slide missing #31

M-Blobby opened this issue Nov 12, 2023 · 0 comments

Comments

@M-Blobby
Copy link

When using ngx-glide on my project, I have a flash effect when loading my slides: all slides are visible for a fraction of a second before being displayed correctly. I realized that by adding the glide__slide CSS class directly to my slides this corrected the problem. In reality this comes from the flex-shrink: 0 property, present on this class since the @glidejs package.

Since ngx-glide itself adds the classes glide, glide__track, glide__slides, etc., shouldn't it also add the glide__slide class? Since the slides are injected via an <ng-content />, the solution that seems simplest to me would be to add a directive to the project. Otherwise specify in the README that we must add this class manually to be sure to inherit all the glidejs style.

I would be happy to suggest a PR if my comment is relevant.

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