All Projects → Aaron00101010 → vue-split-carousel

Aaron00101010 / vue-split-carousel

Licence: MIT license
a carousel component for vue, meanwhile display several carousel item

Programming Languages

Vue
7211 projects
typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to vue-split-carousel

vue-input-autowidth
A Vue.js directive that automatically resizes an input's width to fit its contents.
Stars: ✭ 94 (+154.05%)
Mutual labels:  vue2, vue3
vue3-chat
2021👨‍🎓Vue2/3全家桶 + Koa+Socket+Vant3前后端分离移动端聊天应用。vue+node全栈入门项目
Stars: ✭ 46 (+24.32%)
Mutual labels:  vue2, vue3
vue-insta-stories
Vue 2 & 3 library for Instagram like stories.
Stars: ✭ 45 (+21.62%)
Mutual labels:  vue2, vue3
vue-snippets
Visual Studio Code Syntax Highlighting For Vue3 And Vue2
Stars: ✭ 25 (-32.43%)
Mutual labels:  vue2, vue3
v-intl
Add i18n to your awesome Vue 3 app 🔉
Stars: ✭ 13 (-64.86%)
Mutual labels:  vue2, vue3
v-pip
🖼 Tiny vue wrapper for supporting native picture-in-picture mode.
Stars: ✭ 30 (-18.92%)
Mutual labels:  vue2, vue3
vue-pattern-input
Use RegExp to limit input
Stars: ✭ 25 (-32.43%)
Mutual labels:  vue2, vue3
toggle
Vue 3 toggle component with labels, custom slots and styling options (+Tailwind CSS support).
Stars: ✭ 75 (+102.7%)
Mutual labels:  vue2, vue3
g2plot-vue
g2plot for vue, both 2 and 3
Stars: ✭ 106 (+186.49%)
Mutual labels:  vue2, vue3
slider
Vue 3 slider component with multihandles, tooltips merging and formatting (+Tailwind CSS support).
Stars: ✭ 162 (+337.84%)
Mutual labels:  vue2, vue3
hoc-element-table
📦 A Vue 3.x Table Component built on Webpack 5
Stars: ✭ 26 (-29.73%)
Mutual labels:  vue2, vue3
janak
Your next vue.js package!
Stars: ✭ 26 (-29.73%)
Mutual labels:  vue2, vue3
security-code
A powerful security code input supports dynamic configuration of the number of input boxes.
Stars: ✭ 63 (+70.27%)
Mutual labels:  vue2, vue3
vue-ray
Debug your Vue 2 & 3 code with Ray to fix problems faster
Stars: ✭ 48 (+29.73%)
Mutual labels:  vue2, vue3
v-drag
The simplest way to integrate dragging on Vue.js
Stars: ✭ 71 (+91.89%)
Mutual labels:  vue2, vue3
fluent-vue
Internationalization plugin for Vue.js
Stars: ✭ 137 (+270.27%)
Mutual labels:  vue2, vue3
vue-unstated
A tiny state management library for Vue Composition API.
Stars: ✭ 30 (-18.92%)
Mutual labels:  vue2, vue3
vue-qqmap
基于Vue3的腾讯地图地址可视化拾取、描点,路径规划插件
Stars: ✭ 21 (-43.24%)
Mutual labels:  vue3
my-mini-vue
vue3的一些核心逻辑,自己实现的vue3简易版(核心逻辑)框架。
Stars: ✭ 52 (+40.54%)
Mutual labels:  vue3
seal-vue
本项目为 https://github.com/hequan2017/seal 项目 前端vue版本 基于 iview-admin 2.5.0 支持 动态菜单 本项目已停止开发!因长时间未对代码进行维护,可能会造成项目在不同环境上无法部署、运行BUG等问题,请知晓!项目仅供参考!
Stars: ✭ 16 (-56.76%)
Mutual labels:  vue3

中文文档

Vue Split Carousel

GitHub

A carousel component for vue,meanwhile display several carousel item.

show

2.x version for vue 3

1.x version for vue 2

1.x version doc

Playground

Browser Compatibility

Modern browser, follow vue 3 compatibility.

Component Structure

Use <split-carousel-item> in <split-carousel>,put your custom content in split-carousel-item.

<split-carousel>
  <split-carousel-item>
    custom content
  </split-carousel-item>
  <split-carousel-item>
    custom content2
  </split-carousel-item>
</split-carousel>

Install

# use npm
npm i vue-split-carousel
# use yarn
yarn add vue-split-carousel

support prefix option prevent name conflict while install component with app.use

Local Component

<template>
  <div id="app">
    <split-carousel>
      <split-carousel-item v-for="item in 8" :key="item">
        {{ item }}
      </split-carousel-item>
    </split-carousel>
  </div>
</template>

<script>
  import { SplitCarousel, SplitCarouselItem } from "vue-split-carousel";
  export default {
    components: {
      SplitCarousel,
      SplitCarouselItem
    }
  };
</script>

Global Component

import Vue from "vue";
import App from "./App.vue";
import SplitCarousel from "vue-split-carousel";

const app = createApp(App);
app.use(SplitCarousel);

//accpect prefix for component name conflict, use as `<ElSplitCarousel>` and `<ElSplitCarouselItem>`
//app.use(SplitCarousel,{prefix:'El'});

app.mount("#app");

import by <script>

can use vue-split-carousel.min.umd.js in the dist folder.

<div id="app"></div>
<script src="https://unpkg.com/vue@next"></script>
<script src="./vue-split-carousel.umd.min.js"></script>
<script>
  const app = Vue.createApp({
    template:`
      <split-carousel>
        <split-carousel-item v-for="i in 8">{{i}}</split-carousel-item>
      </split-carousel>
    `
  })
  app.use(window['vue-split-carousel'])
  app.mount('#app')
</script>

Props

Attribute Description Type Accpected Values Default
speed transition duration of carousel item, in milliseconds Number - 500
autoplay whether automatically switch carousel items Boolean - true
interval interval of switch carousel items, in milliseconds Number - 3000
loop whether display carousel items in loop Boolean - true
display-amount the amount of carousel items display in carousel container Number - 4
item-width the width of carousel items Number - 120
height height of carousel, if the prop value type is number,the unit is px by default. you can pass string value to use other unit, eg: 40vh Number/String - 80
timing-function the animation effect of carousel item,reference transition-timing-function String - ease
pause-on-hover whether pause autoplay while mouse hover Boolean - true
arrow-visible whether arrow visiable, avaliable when loop set to false String default/always default

Slots

Name Descrition
left customize left arrow
right customize right arrow

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].