1.0.6 • Published 2 years ago

ractjs v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Downloads Version


English | 中文

Notice:

ract.js is in its infancy.

Welcome your suggestion to me with issue or email


Installation

npm:

npm install --save ractjs 

Browser:

Mainstream browsers such as chrome and firefox already support import natively

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

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

Document

GET START

API DOC

Example

Example1:Fade in and out

npm.io

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

or , check the completed App.vue in Github

r(ball).act(acts.FADE_OUT).act(acts.FADE_IN);

Example2:Zoom

npm.io

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

or , check the completed App.vue in Github

// App.vue
// ...
// key code
r(ball)
    .act({
        transform: 'scale([1~2])',
        duration: 2000,
    })
    .act({
        transform: 'scale([2~1])',
        duration: 2000,
    });
//...

Example3:Drop simulation

npm.io

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

or , check the completed App.vue in Github

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago