I have a slider which is rendered using map(). I need to apply zoom to an img, SwiperJS documentation for React doesn't say anything about it :( I used zoom from swiperJS modules, didn't help
const Blog = () => {
return ( <
<
Swiper modules = {
[Navigation]
}
slidesPerView = {
2
}
spaceBetween = {
40
}
navigation > {
slideObj.map((obj) => ( <
SwiperSlide key = {
obj.imageUrl
} >
<
img className = "blog__image "
src = {
obj.imageUrl
}
alt = "Photo" / >
<
div className = "blog__text" > {
obj.discription
} < /div> < /
SwiperSlide >
))
} <
/Swiper> < /
);
};
export default Blog;