vue-use-spring
TypeScript icon, indicating that this package has built-in type declarations

0.3.3 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.3.3100latest

Version History

VersionDownloads (Last 7 Days)Published
0.3.3100
0.3.20
0.3.136
0.3.00
0.2.10
0.2.00
0.1.10
0.1.00
0.0.20
0.0.10
0.0.00

Package Sidebar

Install

npm i vue-use-spring

Weekly Downloads

136

Version

0.3.3

License

MIT

Unpacked Size

40.2 kB

Total Files

9

Last publish

Collaborators

  • posva