Looking for a way to define the center for each image in a Swiper gallery #7008
ScreenDream
started this conversation in
General
Replies: 2 comments
-
Ok, so I found a way to set all slides to center the image:
Still haven't found a way to address individual slides. I basically need to set the object-position for each slide. Cheers and I hope somebody can shed some light here... :-) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok, with the above in the main CSS file and then local overwrites per slide I got it to work like I need it:
Awesome! :-) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
so far I was using Galleria for my images and it had an option to define for each image where it's focus point is. So when I have a landscape image on a portrait screen, I can for instance set the visible center to "20% 50%" when there is something important on that side.
How would I go about this in Swiper?
I am using the fade transition with fullscreen images.
I haven't found anything in the API docs.
I guess I need to use some CSS for each slide, but am unsure how to best approach it.
I tried to use the CSS object-position on each slide to no avail and I'm out of ideas...
Thanks a lot for any pointers!
Beta Was this translation helpful? Give feedback.
All reactions