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
I want to add captions to my carousel but not display them over the images. Rather display them to the side, seemingly (visually) outside of the carousel. Attached an image of the desktop layout for reference.
I have the layout and the fraction pagination working with Swiper. But I was wondering on the best way to position (and fade on change) a caption. I thought about absolute/fixed position but overflow: hidden would prevent that.
What if I add a data-caption to my slide (image) container then add that to a div outside of <div class="swiper-wrapper"> - is that possible? Markup being something like: <div class="swiper-slide" data-caption="Name of project 1">
As an aside, when you click and drag on desktop slowly and the image slowly morphs to the next. Is the default functionality or is it possible to disable and just change slide as if you like prev/next arrows?
Really appreciate some help if this isn't ludicrous!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I want to add captions to my carousel but not display them over the images. Rather display them to the side, seemingly (visually) outside of the carousel. Attached an image of the desktop layout for reference.
I have the layout and the fraction pagination working with Swiper. But I was wondering on the best way to position (and fade on change) a caption. I thought about absolute/fixed position but
overflow: hidden
would prevent that.What if I add a data-caption to my slide (image) container then add that to a div outside of
<div class="swiper-wrapper">
- is that possible? Markup being something like:<div class="swiper-slide" data-caption="Name of project 1">
Then adding the caption to a div outside like: `
My current Swiper script looks like this:
As an aside, when you click and drag on desktop slowly and the image slowly morphs to the next. Is the default functionality or is it possible to disable and just change slide as if you like prev/next arrows?
Really appreciate some help if this isn't ludicrous!
Thanks,
Steve
Beta Was this translation helpful? Give feedback.
All reactions