All Projects → boenfu → vue-barousel

boenfu / vue-barousel

Licence: other
Carousel component mimics NetEase Cloud Music

Programming Languages

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

Projects that are alternatives of or similar to vue-barousel

Carousel View
CarouselView for android with showing horizontal and vertical, auto scrolling (with pause/resume), slider mode/ carousel mode options
Stars: ✭ 131 (+907.69%)
Mutual labels:  slider, carousel
React Native Swiper Flatlist
👆 Swiper component implemented with FlatList using Hooks & Typescript + strict automation tests with Detox
Stars: ✭ 217 (+1569.23%)
Mutual labels:  slider, carousel
Xam.plugin.simpleappintro
Just a nice and simple AppIntro for your Xamarin Forms project
Stars: ✭ 139 (+969.23%)
Mutual labels:  slider, carousel
vue3-carousel
Vue 3 carousel component
Stars: ✭ 379 (+2815.38%)
Mutual labels:  slider, carousel
Keen Slider
The HTML touch slider carousel with the most native feeling
Stars: ✭ 3,097 (+23723.08%)
Mutual labels:  slider, carousel
Widget
A set of widgets based on jQuery&&javascript. 一套基于jquery或javascript的插件库 :轮播、标签页、滚动条、下拉框、对话框、搜索提示、城市选择(城市三级联动)、日历等
Stars: ✭ 1,579 (+12046.15%)
Mutual labels:  slider, carousel
Slider
Touch swipe image slider/slideshow/gallery/carousel/banner mobile responsive bootstrap
Stars: ✭ 2,046 (+15638.46%)
Mutual labels:  slider, carousel
React Siema
ReactSiema Demo
Stars: ✭ 90 (+592.31%)
Mutual labels:  slider, carousel
angular-simple-slider
An AngularJS directive providing a simple slider functionality
Stars: ✭ 15 (+15.38%)
Mutual labels:  slider, carousel
React Flickity Component
A React.js component for using @desandro's Flickity
Stars: ✭ 232 (+1684.62%)
Mutual labels:  slider, carousel
Ngx Carousel
An amazing responsive carousel for angular 2+ . It have multiple options to control the carousel and also it is very simple to getstarted. Go and try this angular 2+ carousel. Getstarted available in readme file
Stars: ✭ 121 (+830.77%)
Mutual labels:  slider, carousel
MediaSliderView
Pure java based, highly customizable media slider gallery supporting both images and videos for android.
Stars: ✭ 85 (+553.85%)
Mutual labels:  slider, carousel
React Spring Slider
A slider component for react
Stars: ✭ 118 (+807.69%)
Mutual labels:  slider, carousel
React Responsive Carousel
React.js Responsive Carousel (with Swipe)
Stars: ✭ 1,962 (+14992.31%)
Mutual labels:  slider, carousel
Embla Carousel
A lightweight carousel library with fluid motion and great swipe precision.
Stars: ✭ 1,874 (+14315.38%)
Mutual labels:  slider, carousel
Svelte Carousel
A super lightweight, super simple Carousel for Svelte 3
Stars: ✭ 144 (+1007.69%)
Mutual labels:  slider, carousel
React Carousel
Lightweight carousel component for react
Stars: ✭ 56 (+330.77%)
Mutual labels:  slider, carousel
React Native Carousel View
react-native carousel, support in both Android and iOS
Stars: ✭ 70 (+438.46%)
Mutual labels:  slider, carousel
Vue Glide
A slider and carousel as vue component on top of the Glide.js
Stars: ✭ 225 (+1630.77%)
Mutual labels:  slider, carousel
vue-splide
The Splide component for Vue.
Stars: ✭ 257 (+1876.92%)
Mutual labels:  slider, carousel

vue-barousel

网易云音乐同款 轮播图 组件

——简单易用

demo: https://boenfu.github.io/vue-barousel/

Install

npm install vue-barousel --save

yarn add vue-barousel

Use

  1.Import 导入


// 方法1.通过use挂载
import VueBarousel from 'vue-barousel
Vue.use(VueBarousel)


//  方法2.通过require 导入
var VueBarousel = require('VueBarousel')



// 方法3.或者直接导入js文件
<script src="./dist/vue-barousel.js"></script>

  2.Usage 用法

<barousel :list="[{src: '图片路径', title: '图片title'}]"></barousel>

3.Options 配置项

选项名 是否必须 默认值 介绍
:list true 选项数组{src: '图片路径', title: '图片title'}
@barousel false 返回触发元素序号
:width false 100% 容器宽度(默认父级100%)
:height false 100% 容器高度(默认父级100%)
:arrow false true 是否开启前后箭头
:imgType false full 图片显示模式
:autoBegin false true 是否自动播放
:mask false true 前后图片遮罩
:interval false 5000 播放间隔 (ms)
:tab false true 是否开启底部导航
:color false rgb(248, 85, 85) 底部 tab 激活时颜色

详细介绍:

  1. 数组格式如下

    [{
          title: '一张图片', //可选
          src: 'xx.jpg'  //图片地址
    }]

  2. imgType

    等同于 background-size

    可选项 full cover contain

    full 宽高皆为 100%

    cover 把背景图像扩展至足够大,以使背景图像完全覆盖背景区域。

    contain 把图像图像扩展至最大尺寸,以使其宽度和高度完全适应内容区域。

  3. barousel--> 回调函数

    解释:返回触发的序号,便于触发相应逻辑

    *数值参数均无需带单位

4.Develop 开发

进入 vue-barousel 目录

// 开发模式
npm run dev

// 打包
npm run build

Demo Code

<template>
  <div id="app">
    <barousel :list="setList()"
              :width="800"
              :height="280"
              :imgType="'full'"
              @barousel="cb">
    </barousel>
  </div>
</template>

<script>
export default {
  name: 'app',
  methods: {
    setList() {
      let list = [];
      for(let i =1 ; i<= 8;i++){
        list.push({
          title: i,
          src: 'static/img/'+i+'.jpg'
        })
      }
      return list;
    },
    cb (i) {
      alert(i);
    }
  }
}
</script>
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].