Giter VIP home page Giter VIP logo

vue-transition.css's Introduction

vue-transition.css Build Status Github Release

vue-transition动画库

安装

npm 安装

npm install vue-transition.css --save

CDN 可以通过下载vue-transition.min.css,在页面上引入 css 文件即可开始使用。

<!-- 引入样式 -->
<link rel="stylesheet" href="vue-transition.min.css">

使用

// 入口页,如app.vue
<template>
  <div class="app">
    ...
    // 例如使用 move-right-to-left 动画
    <transition name="move-right-to-left">
      <router-view class="app-router-view"></router-view>
    </transition>
    ...
  </div>
</template>

<script>
  // 引入vue-transition.css
  import 'vue-transition.css'
  ...
</script>

<style>
  // 给页面加上以下样式,动画才能生效
  html,
  body,
  .app {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .app {
    background-color: #000;
    perspective: 1200px;
  }

  .app .app-router-view {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    transform-style: preserve-3d;
    visibility: visible;
  }
</style>

查看所有动画

欢迎留言或star,如果对demo中的美女不满意,可以加qq(1024371442)私聊:smile:

License

vue-transition.css is licensed under the MIT license.(http://opensource.org/licenses/MIT)

vue-transition.css's People

Contributors

hfq-pengyuanyuan avatar

Watchers

James Cloos 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.