vue mouseover_Vue.js的Mouseover画廊插件

vue mouseover

VueRollr (VueRollr)

VueRollr is a lightweight plugin that allows you to add a mouseover gallery to your Vue.js project. Supported media now includes images and video.

VueRollr是一个轻量级插件,允许您将鼠标悬停库添加到Vue.js项目。 现在,受支持的媒体包括图像和视频。

安装 (Installation)

npm i vuerollr

npm i vuerollr

用法 (Usage)

<template>
  <div>
    <VueRollr>
      <img src="...">
      <img src="...">
      <img src="...">
      <video loop autoplay muted>
        <source src="...">
      </video>
      <img src="...">
      <img src="...">
      <img src="...">
    </VueRollr>
  </div>
</template>

<script>
import VueRollr from 'vuerollr'

export default {
  components: {
    VueRollr
  }
}
</script>

选件 (Options)

<VueRollr
    :breakpoint="530"
    :speed="2000">
  • breakpoint - autoplay breakpoint default: 768

    断点 -自动播放断点默认值:768

  • speed - autoplay speed in milliseconds default: 1000

    速度 -自动播放速度以毫秒默认:1000

翻译自: https://vuejsexamples.com/mouseover-gallery-plugin-for-vue-js/

vue mouseover

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值