swiper

Swiper issue after append slides

给你一囗甜甜゛ 提交于 2019-12-25 03:39:29
问题 i work on a cordova and jquery project. I use Swiper by idangero for the slides. my issue appears when i append new slides and try to display them. Jquery code: if(row.pictures != ''){ var num_slide = mySwiper.slides.length; console.log("[slidecontent ] "+slidecontent); mySwiper.appendSlide([slidecontent]); for (var i = 0; i < num_slide; i++) { mySwiper.removeSlide(0); } mySwiper.update(); } The slidecontent console log display that: [slidecontent ] '<div class="swiper-slide"><img src="..."><

Swiper not displaying the right amount of pages

风流意气都作罢 提交于 2019-12-24 19:21:12
问题 The swiper component doesn't show the right number of pages. In the example below there should be a total of 4 pages but I only see 2. The first page has t1 and under t2. The second page has t3 and t4. I am using "react-native-swiper" v1.5.4 render() { let testItems = []; testItems.push(<Text>t1</Text>) testItems.push(<Text>t2</Text>) let testItems2 = []; testItems2.push(<Text>t3</Text>) testItems2.push(<Text>t4</Text>) return( <ContainerView disableBackgroundButton={true}> <Swiper loop=

How to implement a fade effect (or any other effect) on toggle?

…衆ロ難τιáo~ 提交于 2019-12-24 18:09:12
问题 Here's how the toggle should work: http://jsfiddle.net/uVaQ3/ $("#experience-left-details").on('click', '.see-map, .see-gallery', function (event) { event.preventDefault(); $(".media-container, .swiper-container").toggleClass('hide'); mySwiper.resizeFix(true); mySwiper.reInit(true); }); GOAL Add a fade in or any other effect on this. TRY 1) So I've tried to apply the effect on the container: http://jsfiddle.net/x29Xk/ $("#experience-left-details").on('click', '.see-map, .see-gallery',

How to implement a fade effect (or any other effect) on toggle?

99封情书 提交于 2019-12-24 18:08:11
问题 Here's how the toggle should work: http://jsfiddle.net/uVaQ3/ $("#experience-left-details").on('click', '.see-map, .see-gallery', function (event) { event.preventDefault(); $(".media-container, .swiper-container").toggleClass('hide'); mySwiper.resizeFix(true); mySwiper.reInit(true); }); GOAL Add a fade in or any other effect on this. TRY 1) So I've tried to apply the effect on the container: http://jsfiddle.net/x29Xk/ $("#experience-left-details").on('click', '.see-map, .see-gallery',

Implementing image slider with thumbs using ngx-swiper-wrapper

余生颓废 提交于 2019-12-24 14:54:14
问题 I'm trying to implement ngx-swiper-wrapper to build an image slider with thumbs similar to this: https://idangero.us/swiper/demos/300-thumbs-gallery.html Has anyone managed to do this? I can't see any good documentation on how to build all swiper sliders with this wrapper. Also, is the FlexLayoutModule that is used in the demo for ngx-swiper-wrapper a must or can it be implemented without? 回答1: Here is an demo and example for you. https://lukasz-galka.github.io/ngx-gallery-demo/ https://www

【swiper】 滑块组件说明

隐身守侯 提交于 2019-12-23 22:00:32
swiper 滑块视图容器,其原型如下: 1 <swiper 2 indicator-dots="[Boolean]" 3 indicator-color="[Color]" 4 indicator-active-color="[Color]" 5 autoplay="[Boolean]" 6 current="[Number]" 7 current-item-id="[String]" 8 interval="[Number]" 9 duration="[Number]" 10 circular="[Boolean]" 11 vertical="[Boolean]" 12 previous-margin="[String]" 13 next-margin="[String]" 14 display-multiple-items="[Number]" 15 skip-hidden-item-layout="[Boolean]" 16 bindchange="[EventHandle]" 17 bindanimationfinish="[EventHandle]" 18 > 19 <swiper-item item-id="[String]"><!-- 数据内容 --></swiper-item> 20 </swiper> <swiper>组件属性说明: 属性 是否必需 类型 默认值

微信小程序的轮播图swiper问题

旧巷老猫 提交于 2019-12-23 21:59:15
微信小程序的轮播图swiper,调用后,怎样覆盖系统的 点,达到自己想要的效果 不多说,先上一图望大家多给意见: 这个是效果图: 微信小程序效果图就成这样子: <view class="section section_gap swiper">   <swiper indicator-dots="{{indicatorDots}}" vertical="{{vertical}}"   autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">   <block wx:for="{{banner}}">   <swiper-item >     <navigator url="../../pages/lists/lists" hover-class="navigator-hover">     <image src="{{item}}" class="swiper-item "></image>     </navigator>     </swiper-item>     </block>   </swiper> </view> page显示效果如下: 在样式里怎么也修改不了,那里面的点的样式,达不到自己想要的效果, 点在repeat里面,我修改 .swiper repeat{width:8rpx;

关于小程序swiper不显示图的那些事

一世执手 提交于 2019-12-23 21:56:08
还有几天快过年了,在这里提前祝大家新年快乐! 今天没事研究了一下小程序,想整个轮播图玩玩,然后开始看看文档https://mp.weixin.qq.com/debug/wxadoc/dev/component/swiper.html?t=20161107(官网地址) 示例代码 index.wxml <view class="container"> < swiper indicator-dots= "{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}"> <block wx:for="{{imgUrls}}"> <swiper-item> <image src="{{item}}" class="slide-image" width="355" height="150"/> </swiper-item> </block> </swiper> <button bindtap="changeIndicatorDots"> indicator-dots </button> <button bindtap="changeAutoplay"> autoplay </button> <slider bindchange="intervalChange" show

how to use swiper slider with jquery tabs?

孤街醉人 提交于 2019-12-23 02:36:08
问题 I am trying to use idangero swiper with jquery tabs i am getting all the result i want except pagination.slider pagination showing only one bullet.It work fine when use with single tab but i don't know how to apply swiper when two or more tabs are required.here is my code and jsfiddle links for eg.http://jsfiddle.net/Rzeiwald/wunw9enL/3/ - http://jsfiddle.net/Rzeiwald/m61qfck1/ Thank you for your time HTML <div class="panel" style="background : transparent; border: none;"> <div id="tabs

前端swiper实现轮播图

梦想的初衷 提交于 2019-12-22 17:06:07
1.普通的轮播图 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <link href="https://cdn.bootcss.com/Swiper/4.5.1/css/swiper.min.css" rel="stylesheet"> <style> .swiper-container { width: 600px; height: 300px; } .swiper-wrapper .swiper-slide img{ width: 600px; height: 300px; } </style> </head> <body> <script src="https://cdn.bootcss.com/Swiper/4.5.1/js/swiper.min.js"></script> <div class="swiper-container"> <div class="swiper-wrapper"> <div