Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 18:41
    lock[bot] locked #3044
  • 18:41
    lock[bot] labeled #3044
  • 18:41
    lock[bot] locked #3043
  • 18:41
    lock[bot] labeled #3043
  • 14:28
    dwickander commented #2621
  • 06:35
    greenkeeper[bot] commented #3034
  • 06:31

    greenkeeper[bot] on rollup-1.27.11

    chore(package): update rollup t… chore(package): update lockfile… (compare)

  • 01:18
    davidnguyen179 opened #3367
  • Dec 11 15:50
    lock[bot] locked #3021
  • Dec 11 15:50
    lock[bot] labeled #3021
  • Dec 11 15:50
    lock[bot] locked #3002
  • Dec 11 15:50
    lock[bot] labeled #3002
  • Dec 11 15:50
    lock[bot] locked #3020
  • Dec 11 15:50
    lock[bot] labeled #3020
  • Dec 11 15:50
    lock[bot] locked #3041
  • Dec 11 15:50
    lock[bot] labeled #3041
  • Dec 11 15:18
    lock[bot] locked #2990
  • Dec 11 15:18
    lock[bot] labeled #2990
  • Dec 11 15:18
    lock[bot] locked #2807
  • Dec 11 15:18
    lock[bot] labeled #2807
Luiz Machado
@odahcam
I made one, but it was closed because it was not compling with the repor requirements
I gotta try again
Patrick Hofer
@patrickhofer
Filipe Kalicki
@kalicki
Hey
Has how I do swipe but without swapping the active, next, prev class and only do this by button events
I want to page the slide, but only change in fact only by SlideNext() or SlidePrev()
Вася
@TheHunterSem
Hi guys
help me please with swiper slider
my navigations are not working
my version 3.4.2
Daniel Ruf
@DanielRuf
@kalicki you have to disable the navigation per settings.
@TheHunterSem can you provide a codepen?
Вася
@TheHunterSem
@DanielRuf i have
@DanielRuf I have already solved this question :)
John Sim
@JRSim_UIX_twitter
Are there any plans to reduce the file size of Swiper? make it modular on build?
Luiz Machado
@odahcam
I would like to know too :)
John Sim
@JRSim_UIX_twitter
+1 ;)
Daniel Gadd
@GaddMaster
Hi All. Is there a React component example I can view. I want use this to replicate a average android dashboard (Sliding pages, with various items in each page) with a react web app ? Anyone help me ?
ArwedSchmidt
@ArwedSchmidt

Hello,
I'm using Swiper.JS and I'm quite happy except for one thing: file size. I currently load 120kB JS + 20kB CSS minified (non-gzipped) for 4.3.5. I don't need quite some functionality (like effects) and wonder: have anybody already created a minimal version/branch of swiper.js with only it's core functionality? Would that be desirable on the main repo?

Cheers,
Arwed

So basically what @JRSim_UIX_twitter and @odahcam were looking for
Daniel Ruf
@DanielRuf
Swiper consists of maby classes and is nodule based.
So yes you can create a version without the needed features.
Luiz Machado
@odahcam
What about three shaking?
Daniel Ruf
@DanielRuf
many module
Treeshaking only work when the module based version is used.
Luiz Machado
@odahcam
I'm using with TypeScript, so should I presume it works as expected or my bundler will fall to some UMD instead of ESM?
Daniel Ruf
@DanielRuf
You have to use import then instead of require and check what your bundler does and which bundle you import from. Should be ESM.
Luiz Machado
@odahcam
That's what I'm doing, so it's probably working as expected
Stanislav Kovalenko
@KovalenkoStas
Hi all!
I can't find any info about which browsers are supported for this lib? Can somebody provide a list of these. Thank you in advance!
Victor Aprea
@vicatcu
hi all, how goes?
I'm looking to find out if there is a way to have a Slide in swiperjs that itself is a container for two div's stacked on top of one another, where the top div is itself a swiperjs Slides container
does that make sense?
Oleg Vakarev
@helgix
Guys, I’m using swiper with ionic but once I scrolled 1 slide which is a paragraph to the end and then when I swiped it the second one is not starting from the beginning. How to achieve a book-like behavior, to show every slide from its top?
I experimented with events and scroll top but everything looks ugly
Riccardo Andreatta
@Riccardo-Andreatta
In an Angular 8 project I am using a wrapper for the Swiper that in all browsers is working perfectly, but not in IE11. As we need the compatibility with this browser, the error reposted in IE console is that there is an error in the built file from Angular (syntax error), when inspecting the error (clicking on this error file), the IE debugger is pointing to the imported Dom7 library also from you guys, is there any Polyfill that we should use for that?
Riccardo Andreatta
@Riccardo-Andreatta
Is anyone from the Swiper developers that is looking at this?
Useless?
Daniel Ruf
@DanielRuf
You should be able to transpile it with babel if you use the esm bundles or use the cjs bundles: https://unpkg.com/browse/swiper@5.0.4/js/
Ramin Zarei
@zareiramin
Hi Guys, i can't find dist folder for version 5! do we need to build it ?
Daniel Ruf
@DanielRuf
@zareiramin take a look at the published files https://unpkg.com/browse/swiper@5.0.4/
Ramin Zarei
@zareiramin
@DanielRuf Tanks.
cartok
@cartok
Any prognosis when next version comes out?
Daniel Schulz
@iamschulz_gitlab
Hi! I stumbled into a problem when integrating swiper into a vanilla es6 project with webpack. I'd like to use only the Swiper core and Navigation module from the ESM, as described in the API docs. however webpack always imports the full bundle and clocks in at ~243kB.
I import it with
import { Swiper, Navigation } from 'swiper/js/swiper.esm.js'; Swiper.use([Navigation]);
Did I miss a step to enable treeshaking?
Daniel Schulz
@iamschulz_gitlab
also, the build script detailed in the api docs appear to be missing as of version 5. I'm refering to: https://swiperjs.com/api/#custom-build
So I can't get either method for tree shaking working.
cartok
@cartok
@nolimits4web thanks much for publishing as patch :)
Daniel Ruf
@DanielRuf
Did you set sideEffects: false? https://webpack.js.org/guides/tree-shaking/
dbarrington
@dbarrington
I'm having trouble with the carousel bouncing back when swiping past a certain point. This is for a long carousel of about 70 items. Any thoughts on what might cause it, or how to diagnose?