Voltar ao ranking

glidejs/glide

JavaScriptglidejs.com

A dependency-free JavaScript ES6 slider and carousel. It’s lightweight, flexible and fast. Designed to slide. No less, no more

slidercarouseles6dependency-freejavascriptlightweight
Crescimento de estrelas
Estrelas
7.7k
Forks
759
Crescimento semanal
Issues
233
2k4k6k
ago. de 2013nov. de 2017mar. de 2022jul. de 2026
Artefatosnpmnpm install glide
README

glide.js

Build Status

What can convince you:

  • Dependency-free. Everything included, ready for action.
  • Lightweight. Only ~23kb (~7kb gzipped) with every functionality on board.
  • Modular. Remove unused modules and drop script weight even more.
  • Extendable. Plug-in your own modules with additional functionalities.
  • Bundlers ready. Using Rollup or Webpack? We have your back.

Documentation

Visit glidejs.com for documentation.

Looking for old documentation? Wiki contains archived documentation of Glide.js in version ^2.0.0.

Donation

Glide.js is an open source project licensed under the MIT license. It's completely free to use. However, it would be great if you buy me a cup of coffee once in a while to keep me awake :)

Getting started

Pull-in a latest version with NPM ...

npm install @glidejs/glide

... provide <link> to the required core stylesheet. You can also optionally add an included theme stylesheet ...

<!-- Required Core stylesheet -->
<link rel="stylesheet" href="node_modules/@glidejs/glide/dist/css/glide.core.min.css">

<!-- Optional Theme stylesheet -->
<link rel="stylesheet" href="node_modules/@glidejs/glide/dist/css/glide.theme.min.css">

... then, prepare a little bit of necessary markup ...

<div class="glide">
  <div data-glide-el="track" class="glide__track">
    <ul class="glide__slides">
      <li class="glide__slide"></li>
      <li class="glide__slide"></li>
      <li class="glide__slide"></li>
    </ul>
  </div>
</div>

... and finally, initialize and mount a Glide.

import Glide from '@glidejs/glide'

new Glide('.glide').mount()

Need a few selected modules? Import and mount only what you need.

import Glide, { Controls, Breakpoints } from '@glidejs/glide/dist/glide.modular.esm'

new Glide('.glide').mount({ Controls, Breakpoints })

Contributing

The issue channel is especially for improvement proposals and bug reporting. If you have implementing problems, please write on StackOverflow with glidejs tag.

Browser Support

  • IE 11+
  • Edge
  • Chrome 10+
  • Firefox 10+
  • Opera 15+
  • Safari 5.1+
  • Safari iOS 9+

Building

Build using NPM scripts. The following scripts are available:

  • build:css - Outputs CSS files from SASS files.
  • build:js - Outputs all destination variants of the script.
  • build - Comprehensively builds the entire library.
  • test - Runs complete test suite.
  • lint - Lints library JavaScript files.

Credits

License

Copyright (c) 2014-present, Jędrzej Chałubek. Licensed under the terms of the MIT License.

Repositórios relacionados
nolimits4web/swiper

Most modern mobile touch slider with hardware accelerated transitions

TypeScriptnpmMIT Licenseswipeswiper
swiperjs.com
41.9k9.6k
davidjerleke/embla-carousel

A lightweight carousel library with fluid motion and great swipe precision.

TypeScriptnpmMIT Licensecarouselslider
embla-carousel.com
8.4k257
Splidejs/splide

Splide is a lightweight, flexible and accessible slider/carousel written in TypeScript. No dependencies, no Lighthouse errors.

TypeScriptnpmMIT Licenseslidercarousel
splidejs.com
5.4k446
ganlanyuan/tiny-slider

Vanilla javascript slider for all purposes.

HTMLMIT Licenseslidercarousel
5.3k772
rcbyr/keen-slider

The HTML touch slider carousel with the most native feeling you will get.

TypeScriptnpmMIT Licenseslidercarousel
keen-slider.io
5k216
Clooos/Bubble-Card

Bubble Card is a minimalist card collection for Home Assistant with a nice pop-up touch.

JavaScriptnpmMIT Licensecustom-cardcustom-cards
4.4k168
stevenwanderski/bxslider-4

Responsive jQuery content slider

JavaScriptnpmOtherbxslidercontent-slider
4.2k1.8k
ramonszo/zuck.js

A javascript library that lets you add stories EVERYWHERE.

TypeScriptnpmMIT Licensestoriesstory
ramon.codes/projects/zuck.js/
3.7k311
seiyria/bootstrap-slider

A slider control for Bootstrap 3 & 4.

JavaScriptnpmOtherbootstrapslider
seiyria.github.io/bootstrap-slider/
3k1.1k
naver/egjs-flicking

🎠 ♻️ Everyday 30 million people experience. It's reliable, flexible and extendable carousel.

TypeScriptnpmMIT Licenseegjsjavascript
naver.github.io/egjs-flicking/
2.9k139
ydcss/vue-ydui

A mobile components Library with Vue2.js. 一只基于Vue2.x的移动端组件库。

VueMIT Licensevuemobile
vue.ydui.org
2.7k551
shichunlei/flutter_app

🔥🔥🔥本项目包括各种基本控件使用(Text、TextField、Icon、Image、Listview、Gridview、Picker、Stepper、Dialog、Slider、Row、Appbar、Sizebox、BottomSheet、Chip、Dismissible、FlutterLogo、Check、Switch、TabBar、BottomNavigationBar、Sliver等)、豆瓣电影、tubitv、每日一文、和天气、百姓生活、随机诗词、联系人、句子迷、好奇心日报、有道精品课、高德定位、音乐播放器🎵、追书神器等板块

DartApache License 2.0dartflutter
2.7k511