Giter VIP home page Giter VIP logo

vue2-marquee's Introduction

vue2-marquee

vue2-marquee基于vue2的横向、纵向跑马灯动画效果

install

添加依赖安装

"vue2-marquee": "git+https://github.com/zhouyicc/vue2-marquee.git"

执行npm install

全局安装以及引入css

import vue2Marquee from "vue2-marquee"

import "vue2-marquee/dist/vue2Marquee.css"

Vue.use(vue2Marquee);

使用

<v2-marquee
    :tempo="10" 
    mode="horizontal">
    <div v-for="(item,index) in nodes" :key="index" class="margin-right-30 padding-10">
        {{item + index}}
    </div>
</v2-marquee>

属性

tempo:移动速率,默认值:10

mode:横向滚动、纵向滚动,默认值:horizontal,可选值:horizontal/vertical

vue2-marquee's People

Contributors

zhouyicc avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.