All Projects → posva → Vue Tweezing

posva / Vue Tweezing

Licence: mit
💃 Easy, customizable and automatic tweening nicely served in scoped slots

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Tweezing

Tween One
Animate One React Element
Stars: ✭ 310 (+206.93%)
Mutual labels:  tween, motion
Juicer
Juicer is a generic animation / motion library for macOS & iOS & tvOS written in Swift
Stars: ✭ 13 (-87.13%)
Mutual labels:  tween, motion
Motionmachine
A powerful, elegant, and modular animation library for Swift.
Stars: ✭ 380 (+276.24%)
Mutual labels:  tween, motion
ux-animate
A simple but powerful tweening, spring physics, animation library for Rust
Stars: ✭ 19 (-81.19%)
Mutual labels:  tween, motion
Pmtween
An elegant and flexible tweening library for iOS and tvOS.
Stars: ✭ 346 (+242.57%)
Mutual labels:  tween, motion
Popmotion
Simple animation libraries for delightful user interfaces
Stars: ✭ 18,656 (+18371.29%)
Mutual labels:  tween, motion
Moto.js
A light motion library with curvilinear support.
Stars: ✭ 24 (-76.24%)
Mutual labels:  tween, motion
React Native Skeleton Content Nonexpo
A customizable skeleton-like loading placeholder for react native projects not using expo.
Stars: ✭ 92 (-8.91%)
Mutual labels:  component
Animetask
Task Animation Library for Unity
Stars: ✭ 95 (-5.94%)
Mutual labels:  tween
Unitween
UniTween is a Tween framework for Unity that enables programmers and artists to create almost any kind of Tween in a workflow that is easy to learn, fun to use, and with great maintainability.
Stars: ✭ 92 (-8.91%)
Mutual labels:  tween
Ngx Select Dropdown
Custom Dropdown for Angular 4+ with multiple and single selection options
Stars: ✭ 91 (-9.9%)
Mutual labels:  component
Polyfill Php54
This component provides functions unavailable in releases prior to PHP 5.4.
Stars: ✭ 93 (-7.92%)
Mutual labels:  component
React Background Slideshow
Sexy tiled background slideshow for React 🔥
Stars: ✭ 98 (-2.97%)
Mutual labels:  component
Akane
Lightweight native iOS MVVM framework
Stars: ✭ 92 (-8.91%)
Mutual labels:  component
Ugui Tween Tool
unity4.6.x && unity5.x ugui tween utools
Stars: ✭ 99 (-1.98%)
Mutual labels:  tween
Vue Stepper
👨🏻‍🚀 A renderless component for composing a Stepper
Stars: ✭ 90 (-10.89%)
Mutual labels:  component
React Autocomplete Input
Autocomplete input field for React
Stars: ✭ 100 (-0.99%)
Mutual labels:  component
Geotic
Entity Component System library for javascript
Stars: ✭ 97 (-3.96%)
Mutual labels:  component
React Native Sketch View
A React Native component for touch based drawing supporting iOS and Android.
Stars: ✭ 97 (-3.96%)
Mutual labels:  component
O Grid
Responsive grid system
Stars: ✭ 96 (-4.95%)
Mutual labels:  component

VueTweezing Build Status npm package coverage thanks

Easy, customizable and automatic tweening nicely served in scoped slots

VueTweezing works with any tweening engine and provide easy integration with some engines like tween.js and Tweezer

Demo, source

Usage

Install it as a plugin:

import { Tweezing, tweezerHelper } from 'vue-tweezing'
// import Tweezer to use it as our Tweening engine
import Tweezer from 'tweezer.js'

// install the plugin with as many engines as you want
// use the tweezerHelper to generate the function
// needed by VueTweezing to handle tweezing
Vue.use(Tweezing, {
  tweezer: tweezerHelper(Tweezer),
})

Use it as a component:

<Tweezing ref="tweezing" :to="value" duration="500" @end="doSomething">
  <pre slot-scope="tweenedValue">
    target: {{ value }}
    val: {{ tweenedValue }}
  </pre>
</Tweezing>

Change value as you would usually do:

const vm = new Vue({
  el: '#app',
  data: {
    value: 0,
  },
})
// somewhere else
vm.value = 200

You can play with the tween object by accessing the property $tween in the Tweening component:

// given the example above
vm.$refs.tweezing.$tween.stop()

Passing tweening options

Any prop passed to Tweezing different from tween and to will be considered an option and passed

Supported Tweening engines

WIP

Tweezer

Tween.js

Adding your own

WIP

You can check the examples in src/index.js to see how to create your own helpers.

License

MIT

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