vue-use-spring

Natural animations with springs
38,859 93
Install
npm install vue-use-spring
Latest Version:0.3.3
Vue:2 · 3
License:MIT
Last Updated:Oct 19, 2026
Links: GitHub  ·  npm
Maintainer: posva

vue-use-spring NPM version ci status

💫 Make natural animations with springs!

Installation

yarn add vue-use-spring
# or
npm install vue-use-spring

Usage

import { useSpring } from 'vue-use-spring'

const position = useSpring({ x: 0, y: 0 })

// change position like you would usually
position.x = 100
<p :style="{ transform: `translateX(${position.x}px)` }">I move!</p>

API

Related

License

MIT

Related Packages

@sweberdev/lagrangian-vue

Vue 3 composables for Lagrangian: physical springs, draggable elements with iner...

0 0
@rafaelaugusto/jolt

Native animations for NativeScript: presets, springs, keyframes and stagger in o...

791 4
@sweberdev/sigmoid-vue

Vue 3 directives and composables for Sigmoid: v-reveal, v-parallax, useScrollPro...

190 0

Version History

Version Released License
0.3.3 MIT
0.3.2 MIT
0.3.1 MIT
0.3.0 MIT
0.2.1 MIT