swiper

Image gallery swiper not showing on jQueryMobile page

走远了吗. 提交于 2019-12-13 01:33:55
问题 I am using Swiper by idangero.us on my jQueryMobile page. My HTML-file consists of two "pages". One of them is supposed to have an image gallery. It works fine to view the images, and the slider is functional, without jQueryMobile. But as soon as I use jQueryMobile, the images are no longer showing up. The most similar problem I've found is this: Swiper not working in Jquery Mobile but it didn't help me find a solution. Can someone explain to me why this doesn't work? This is my HTML: <

Swiper slides - showing end/start of previous/next slides like Airbnb Slider?

家住魔仙堡 提交于 2019-12-12 08:09:01
问题 Above is the slider from Airbnb . Is there a way to get a similar effect with Swiper? For the first slide, there is a blank space on the left and start of the next slide. For the middle slide, there is the start and end of previous and next slides. For the last slide, there is a blank space on the right and end of the previous slide on the left. 回答1: Just set the slidesPerView option using decimal places, eg: var swiper = new Swiper('.swiper-container', { ... // this shows a bit of the

iDangerous Swiper plugin fade div on active slide and fade out on swipe

给你一囗甜甜゛ 提交于 2019-12-12 01:25:21
问题 I am trying to setup swiper so that it fades in a div on each slide. The slides would look like this <div class="swiper-slide"> <img src="http://fpoimg.com/300x200?text=Promotion&bg_color=e6e6e6&text_color=ffffff" class="animated fadeInUp"/> <div class="card-actions"> Form field<br> Button </div> </div> I want it to slide as normal but fade in the div with the class card-actions for each slide when it is the active slide and then when you start to slide to next slide i want it to fade out.

Image disappears in carousel mode (jQuery Swiper plugin)

与世无争的帅哥 提交于 2019-12-11 23:24:46
问题 I am using iDangero.us Swiper plugin for homepage slider, and I encountered a peculiar problem in all browsers. I have 4 slides (each is a div with a background image and some text and images inside), and all looks fine until I swipe (or click the Next button) to go from the last slide to come to the first one. The new slide appears totally white, and it only takes a slight dragging to make it appear properly. Interestingly, this does not happen if I scroll backwards (drag the slider to the

Swiper position relative to other element in header

情到浓时终转凉″ 提交于 2019-12-11 17:05:51
问题 Hi I am implementing Swiper in my header file but I have problems correctly positioning it. WHAT I WANT: FUll height Swiper on top of navigation menu WHAT I HAVE: Limited height Swiper or full height covering the navigation menu From my very limited understanding of css, I think I should have my header.css positioned as relative and element-wise css positioned as absolute. The problem is that I do not know the exact dimension of pictures going to be shown with Swiper ( positioned as absolute

How to enable dragging between two react-native-swiper components?

戏子无情 提交于 2019-12-11 15:02:50
问题 I am trying to enable drag-and-drop between two react-native-swiper components. I used Animated.Text and PanResponder to drag the text in bottom one react-native-swiper and it is working corretly until when the dragging is moved over the above one react-native-swiper componenent. The dragged text is unvisible when dragging over the other react-native-swiper. Could anyone explain what is happening and how to fix the behaviour? Here is the simplefied code to reproduce the behaviour: import

在vue中使用swiper方法

瘦欲@ 提交于 2019-12-11 13:28:50
swiper官网:https://www.swiper.com.cn/usage/index.html 安装: npm install swiper --save-dev />.</个人喜欢方法二 方法一: 根据官网一样写法,因此哪个组件需要用swiper就直接在组件里引用。 轮播器需要什么就写什么,具体看官网,我这里只需轮播循环、分页器为点。 <template> <div class="swiper-container"> <div class="swiper-wrapper"> <div class="swiper-slide">Slide 1</div> <div class="swiper-slide">Slide 2</div> </div> <!-- 如果需要分页器 --> <div class="swiper-pagination"></div> </div> </template> <script> import Swiper from 'swiper' import 'swiper/dist/css/swiper.min.css' export default { computed: { new Swiper('.swiper-container', { loop: true, // 可以循环轮播 // 如果需要分页器 pagination: { el: '

Swiper slider space between not showing on load

偶尔善良 提交于 2019-12-11 05:01:48
问题 When I initialize the slider in angular2 the slider not loads sometimes and after resizing it works fine setTimeout(function() { let slider = new Swiper('#property-slider', { 'nextButton' : '.swiper-button-next', 'prevButton' : '.swiper-button-prev', 'slidesPerView' : 4, 'spaceBetween' : 20, 'loop' : true, 'preventClicks': false, 'breakpoints' : { 819: { slidesPerView: 2 }, 509: { slidesPerView: 1 } } }); }, 500) can someone please give me some solution for it why this is happening 来源: https:

iDangerous Swiper plugin reset slides

烈酒焚心 提交于 2019-12-10 21:24:22
问题 I am using the iDangerous Swiper plugin. I need to periodically change all the slides in an ajax method. What would be the best method to do the same. 回答1: call destroy() on Swiper remove/replace all you slides with new ones clear style attribute on .swiper-wrapper initialize swiper again 来源: https://stackoverflow.com/questions/22394521/idangerous-swiper-plugin-reset-slides

Vue项目使用vue-awesome-swiper无法兼容IE浏览器

我的梦境 提交于 2019-12-10 18:17:11
Vue项目使用vue-awesome-swiper无法兼容IE浏览器 1.卸载现有项目所依赖的swiper插件,手动安装 npm install --save-dev swiper@2.6.7 2.第一步操作完成之后应该可以在IE正常显示了,但样式和效果可能会出现问题,这是由于swiper5/4和swiper的用法略有差异。 详情参阅官方文档(https://www.swiper.com.cn/api/index.html) 来源: CSDN 作者: weixin_46000790 链接: https://blog.csdn.net/weixin_46000790/article/details/103480119