All Projects → lukechinworth → vue-mixin-tween

lukechinworth / vue-mixin-tween

Licence: MIT License
Vue mixin factory to tween component numerical data

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vue-mixin-tween

kinieta
A Fast Animation Engine with an Intuitive API
Stars: ✭ 44 (+76%)
Mutual labels:  tween
BeauRoutine
Coroutine and tweening framework for Unity3D
Stars: ✭ 88 (+252%)
Mutual labels:  tween
Flutter-Anim
Fluent Flutter Animation library. Describe Sequences & Parallel animation's workflow, setup startDelay, duration and curve, then run !
Stars: ✭ 35 (+40%)
Mutual labels:  tween
MintAnimation
一款高效易用的Unity插值动画系统,可以快速制作UI动画
Stars: ✭ 84 (+236%)
Mutual labels:  tween
ModernUI
Modern desktop framework from low-level 3D graphics API to high-level view model, for development of 2D/3D rendering software or game engine, with internationalization support and many new technologies.
Stars: ✭ 168 (+572%)
Mutual labels:  mixin
vue-component-style
A Vue mixin to add style section to components.
Stars: ✭ 16 (-36%)
Mutual labels:  mixin
vertical-rhythm-reset
A Sass/SCSS library for responsive vertical rhythm grids, modular scale typography, and CSS normalization.
Stars: ✭ 65 (+160%)
Mutual labels:  mixin
IFramework-Unity
Simple Unity Framework
Stars: ✭ 186 (+644%)
Mutual labels:  tween
vue-in-viewport-mixin
Vue 2 mixin to determine when a DOM element is visible in the client window
Stars: ✭ 99 (+296%)
Mutual labels:  mixin
sloped-edge
Sass mixin that helps you build sloped section edges with a consistent angle.
Stars: ✭ 85 (+240%)
Mutual labels:  mixin
python-pyfields
Define fields in python classes. Easily.
Stars: ✭ 39 (+56%)
Mutual labels:  mixin
ux-animate
A simple but powerful tweening, spring physics, animation library for Rust
Stars: ✭ 19 (-24%)
Mutual labels:  tween
ezaction
基于cocos creator的2D动画框架。An extension animation framework for cocos creator.
Stars: ✭ 24 (-4%)
Mutual labels:  tween
helm2-mixin
Helm mixin for Porter
Stars: ✭ 14 (-44%)
Mutual labels:  mixin
ClientAPI
API designed to make Minecraft "Utility Mods" have Universal Support
Stars: ✭ 58 (+132%)
Mutual labels:  mixin
UnityCore
A collection of essential game systems for Unity 3D. These generic systems can be applied to any Unity project.
Stars: ✭ 105 (+320%)
Mutual labels:  tween
unity-async-tweens
Tween Extension to Unity-AsyncRoutines
Stars: ✭ 16 (-36%)
Mutual labels:  tween
scss-font-lock
This is a SCSS mixin used to create CSS locks for responsive typography. To make in convenient to use it allows you to use both px and em as units and if anything goes wrong, it will let you know during the compile using scss @warn and also print an error message on top of the text in the application or website.
Stars: ✭ 18 (-28%)
Mutual labels:  mixin
Ease-Transitions-System
Unity system to easily test and apply ease transitions/tweens to component values
Stars: ✭ 31 (+24%)
Mutual labels:  tween
duck-tween
A tween library for unity
Stars: ✭ 23 (-8%)
Mutual labels:  tween

Vue Mixin Tween

Vue mixin factory to tween component numerical data (using Tween.js).

Installation

npm install vue-mixin-tween

Usage

To tween a component prop, e.g. width:

import VueMixinTween from 'vue-mixin-tween';

export default {
    props: {
        width: Number,
    },
    mixins: [
        VueMixinTween('width'),
    ],
    // this.widthTween now available in your component
    // update width to new value, and widthTween will tween from the old to the new
};

API

VueMixinTween(propName[, duration[, ease]])

propName: String (required)

Component property to watch for changes. Tweened property available on component context at ${propName}Tween.

duration: Number = 500 (optional)

Duration of tween.

ease: Function = TWEEN.Easing.Quadratic.Out (optional)

Easing function to tween value with.

Contributing

Please send a pull request if you'd like to improve the project.

Attribution

This project borrows heavily from Animating State with Watchers from the vue docs. It basically just moves that example into a reusable mixin.

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].