r_animate

1.0.10 • Public • Published

r_animate.js

Downloads Version

produce animation with functional programming


English | 中文

Notice:

r_animate.js is in its infancy.

Welcome your suggestion to me with issue or email


Installation

npm:

npm install --save r_animate 

Browser:

Mainstream browsers such as chrome and firefox already support import natively

<script type="module">
    import { r, act } from "https://unpkg.com/r_animate/index.js";
</script>

how to use r_animate.js in native html and javascript ? 👉 [code][demo]

Document

Example

Example1:Fade in and out

You can check and run the completed App.vue in Playground

or , check the completed App.vue in Github

 r(this.$refs.circle).r_animate(act.FADE_OUT).r_animate(act.FADE_IN);

Example2:Zoom

You can check and run the completed App.vue in Playground

or , check the completed App.vue in Github

// App.vue
// ...
// key code
r(this.$refs.circle)
    .r_animate({
        transform: 'scale([1~2])',
        duration: 2000,
    })
    .r_animate({
        transform: 'scale([2~1])',
        duration: 2000,
    });
//...

Example3:Drop simulation

You can check and run the completed App.vue in Playground

or , check the completed App.vue in Github

Readme

Keywords

Package Sidebar

Install

npm i r_animate

Weekly Downloads

0

Version

1.0.10

License

ISC

Unpacked Size

54.5 kB

Total Files

9

Last publish

Collaborators

  • r1ader