Allows the components to tween their properties.

Overview

VueTween

Allows the components to tween their properties.

demo

Try it out!

dependencies

setup

npm

npm install @seregpie/vuetween

ES module

Install the plugin globally.

import Vue from 'vue';
import VueTween from '@seregpie/vuetween';

Vue.use(VueTween);

or

Register the plugin in the scope of a component.

import VueTween from '@seregpie/vuetween';

export default {
  mixins: [VueTween],
  /*...*/
};

browser

<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/@seregpie/vuetween"></script>

If Vue is detected, the plugin will be installed automatically.

usage

{
  props: {
    number: Number,
    animationDuration: Number,
  },
  tweened: {
    animatedNumber: {
      get() {
        return this.number;
      },
      duration() {
        return this.animationDuration;
      },
      easing(t) {
        return t * (2 - t);
      },
    },
  },
}

Use nested objects and arrays.

{
  data: {
    colors: [
      {r: 255, g: 0, b: 0},
      {r: 0, g: 255, b: 0},
      {r: 0, g: 0, b: 255},
    ],
  },
  tweened: {
    animatedColors: {
      get() {
        return this.colors;
      },
      duration: 1000,
    },
  },
}
You might also like...
a minimalistic tween library

femtoTween femtoTween's goal is to provide just enough tweening functionality to cover basic use cases. Through this primary goal, it should also be o

a minimalistic tween library

femtoTween femtoTween's goal is to provide just enough tweening functionality to cover basic use cases. Through this primary goal, it should also be o

This project allows each person to write down their goals. You can add multiple lists that you want to run. After you complete a goal from the list, you can delete it.
This project allows each person to write down their goals. You can add multiple lists that you want to run. After you complete a goal from the list, you can delete it.

This project allows each person to write down their goals. You can add multiple lists that you want to run. After you complete a goal from the list, you can delete it.

This app allows you to consult relevant information from Github users through their username, it is fully responsive and has light and dark themes that adapt according to your preferences.
This app allows you to consult relevant information from Github users through their username, it is fully responsive and has light and dark themes that adapt according to your preferences.

This app allows you to consult relevant information from Github users through their username, it is fully responsive and has light and dark themes that adapt according to your preferences.

Data Science UCSB's management of GauchoCourses, a quarterly course planner that allows students to see possible schedule combinations for the classes they want to take, and save them for when their pass times come around.

GauchoCourses Data Science UCSB's GauchoCourses application is a quarterly course planner that allows students to see possible schedule combinations f

JSON Schema Editor is an intuitive editor for JSON schema. It provides a tree view to present the structure of schema, and a property inspector to edit the properties of schema element. Develop with Vue.js 2 and Firebase.

json-schema-editor An intuitive editor for JSON schema which provides a tree view to present structure of schema and a property inspector to edit the

A Vue.js plugin to workaround Vue limitation in observing dynamically added properties with v-model directive.

vue-model-autoset A Vue.js plugin to workaround Vue limitation in observing dynamically added properties with v-model directive. Imagine a huge form w

Provides reactivity window size properties for Vue.js

vue-window-size Provides reactivity window size properties for Vue.js. Install for Vue v3 The following command installs vue-window-size v1. $ yarn ad

Async computed properties for Vue.js

vue-async-computed With this plugin, you can have computed properties in Vue that are computed asynchronously. Without using this plugin, you can't do

Vue devtool for identifying Vue components and their SFC paths in the DOM
Vue devtool for identifying Vue components and their SFC paths in the DOM

💡 vue-dom-hints A Vue devtool that adds dev hints in the DOM via __vue__ attribute Instantly identify all Vue components in the DOM and where they're

Over 90 Bootstrap based Vue.js components and directives. CoreUI React.js UI Components. CoreUI for Vue.js replaces and extends the Bootstrap javascript. Components have been built from scratch as true Vue components, without jQuery and unneeded dependencies.
A lightweight and customizable editor that allows you to embed rich content using Vuejs components.

Vue Mobiledoc Editor A Mobiledoc editor written using Vue and Mobiledoc Kit. Installation npm install vue-mobiledoc-editor The vue-mobiledoc-editor w

A storybook decorator that allows you to use routing-aware components in your stories

storybook-router A Storybook decorator that allows you to use your routing-aware components. You can simply use the library link component within your

A Vue/Nuxt component that allows you to lazily render components only when they are scrolled into the viewport.

nuxt-render-on-scroll nuxt-render-on-scroll - A Vue/Nuxt component that allows you to lazily render components only when they are scrolled into the vi

Let users control your Vue app using AI and their camera in just 1 line of HTML!

Vue Camera Gestures Let users control your Vue app using AI, their camera, and gestures of their choice in just 1 line of HTML! Demo and full document

👜 A Provider Component that encapsulate your forms and handle their states and validations.

vue-form-container A Provider Component that encapsulate your forms and handle their states and validations. Under the hood it uses valite, a light an

Vue project template for authoring component and their use case
Vue project template for authoring component and their use case

vue-authoring-template Click one of this badge for more info This template is to help authoring Vue component with it's use case in story-scenario (st

start using Sheets2API to turn their spreadsheets into powerful APIs to rapidly develop prototypes, websites, apps
start using Sheets2API to turn their spreadsheets into powerful APIs to rapidly develop prototypes, websites, apps

... turns your spreadsheet into a Restful JSON API, meaning you can get data in and out of your spreadsheet using simple HTTP requests and URLs.

MedTime is a web/mobile app that helps people with short-term memory set reminders to take their medicine or apply some treatments to a wound.

MedTime ⏰ A web/mobile app that: Helps people set reminders to take their drugs Detect fall via mobile device API, and prompt the userasking if they a

Owner
Sergej Sintschilin
I am not a hacker.
Sergej Sintschilin
Colorpicker of Vue Components

vue-colorpicker LiveDemo Install $ yarn add @caohenghu/vue-colorpicker Example <template> <div :style="{background: color}"> <color-picker

null 112 Dec 24, 2022
Allows the components to tween their properties.

VueTween Allows the components to tween their properties. demo Try it out! dependencies Vue setup npm npm install @seregpie/vuetween ES module Install

Sergej Sintschilin 22 Feb 19, 2022
Allows the components to tween their properties.

VueTween Allows the components to tween their properties. demo Try it out! dependencies Vue setup npm npm install @seregpie/vuetween ES module Install

Sergej Sintschilin 22 Feb 19, 2022
Allows the components to save and load their data across the browser sessions.

VueStorage Allows the components to save and load their data across the browser sessions. Works for Vue 2 & 3. demo Try it out! dependencies VueDemi s

Sergej Sintschilin 53 Nov 16, 2022
Smart asynchronous data and computed properties for vue components.

vue-async-properties Vue Component Plugin for asynchronous data and computed properties. A Marketdial Project new Vue({ props: { articleId: Numb

MarketDial 38 Jun 21, 2021
Vue.js components for consistent navigation and branding across Creative Commons web properties

cc-global-components Vue.js components for consistent navigation and branding across Creative Commons web properties Status Development: This project

Creative Commons 5 Oct 14, 2022
Dark themed, SEO friendly: Nuxt Content + TailwindCSS + Firebase + i18n + RSS2 based SPA for procrastinating developers to quickly spin up their own kickass blog and showcase their projects.

Dark themed, SEO friendly: Nuxt Content + TailwindCSS + Firebase + i18n based SPA for procrastinating developers to quickly spin up their own kickass blog and showcase their projects.

Gyan Prakash Karn 284 Jan 6, 2023
Dark themed, SEO friendly: Nuxt Content + TailwindCSS + Firebase + i18n + RSS2 based SPA for procrastinating developers to quickly spin up their own kickass blog and showcase their projects.

Dark themed, SEO friendly: Nuxt Content + TailwindCSS + Firebase + i18n + RSS2 based SPA for procrastinating developers to quickly spin up their own kickass blog and showcase their projects.

Gyan Prakash Karn 108 Jun 25, 2021
Alphitter: A platform for user to share their life with their friends

Alphitter Alphitter is a platform for user to share their life with their friends 專案名稱 Alphitter Alphitter 是一個模擬Twitter的社交媒體平台,使用者可以於平台中,和自己的朋友分享生活。 L

Wei Kai 0 Dec 19, 2021
Vue mixin factory to tween component numerical data

Vue Mixin Tween Vue mixin factory to tween component numerical data (using Tween.js). Installation npm install vue-mixin-tween Usage To tween a compon

Luke Chinworth 25 Nov 8, 2020