You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 theflex-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 theglide__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.
The text was updated successfully, but these errors were encountered: