Skip to content

fix(astro-swiper): format DemoEffectCards component and refine s effect#19

Closed
devzom wants to merge 1 commit intopascal-brand38:mainfrom
devzom:fix/swiper-cardeffects-use-native-shadow
Closed

fix(astro-swiper): format DemoEffectCards component and refine s effect#19
devzom wants to merge 1 commit intopascal-brand38:mainfrom
devzom:fix/swiper-cardeffects-use-native-shadow

Conversation

@devzom
Copy link
Copy Markdown

@devzom devzom commented Apr 11, 2026

Closes #18

@devzom devzom force-pushed the fix/swiper-cardeffects-use-native-shadow branch from 43410db to 2717c59 Compare April 11, 2026 17:09
@devzom devzom force-pushed the fix/swiper-cardeffects-use-native-shadow branch from 2717c59 to 3522cfb Compare April 11, 2026 17:11
@pascal-brand38
Copy link
Copy Markdown
Owner

@devzom thanks a lot to have pointed out this css hack. This makes the code harder to understand.

However, your fix does not work. With this PR, the background is grey for all slides, because it is set in .my-slide, and the hack has been removed. Also, swiperjs demo does not use cardsEffect.slideShadows: false. And I want to stay as close as possible to the original settings of swiperjs demo.

I have proposed in #20 another refactoring, that removes the css-hack, and makes the code more straightforward.

Let me know...

@pascal-brand38
Copy link
Copy Markdown
Owner

@devzom what do you think of this solution?

@devzom
Copy link
Copy Markdown
Author

devzom commented Apr 13, 2026

Hey, my bad, I've missed that. ;) let's go ahead with your solution:)

@devzom devzom closed this Apr 13, 2026
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

Successfully merging this pull request may close these issues.

Use SwiperSlide native settings to skip shadow on slide

2 participants