thednp / kute.js

KUTE.js is a JavaScript animation engine for modern browsers.

Home Page:http://thednp.github.io/kute.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReactNative πŸ˜…

rborn opened this issue Β· comments

Is it possible to use it with ReactNative ?

I don't know, but if your KUTE.js animation code runs after DOM changes, it should be fine.

Thnx for the reply - kute depends on DOM, right? if yes it won't work :)

Also requires window for the to() method where getComputedStyle() is used.

An easy work around is making a callback system in your code similar to customElements implementation:

  • onConnected - add your tween objects
  • onDisconnected - stop and destroy your tween objects

Make sure your code executes when DOM is ready and no manipulation is taking place, or else you need to rely on jQuery for its tweaks and quirks.

Thanks for explaining πŸ€—