Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Animated' is not smooth when there're many animations #214

Closed
BodhiHu opened this issue Sep 27, 2016 · 5 comments
Closed

'Animated' is not smooth when there're many animations #214

BodhiHu opened this issue Sep 27, 2016 · 5 comments

Comments

@BodhiHu
Copy link

BodhiHu commented Sep 27, 2016

Hi guys,

First really awesome library to bring react-native to the web front end 👍

Currently I'm using this to write an HTML-5 page which uses a lot of Animated animations, which doesn't seem very smooth, so I would guess the animations are being run in the main thread which would be blocked let's say, when there're lots of animations ?

If so wondering if this could be improved ? E.g. put the animations work in another worker maybe ?

@BodhiHu BodhiHu changed the title Animated API is not smooth when there're many animations Animated is not smooth when there're many animations Sep 27, 2016
@BodhiHu BodhiHu changed the title Animated is not smooth when there're many animations 'Animated' is not smooth when there're many animations Sep 27, 2016
@necolas
Copy link
Owner

necolas commented Sep 27, 2016

Hi, I'd open this issue against React Native or the separate Animated package: https://github.com/animatedjs/animated

@necolas necolas closed this as completed Sep 27, 2016
@faceyspacey
Copy link

@ChrisOHu any discoveries regarding how to optimize multiple animations? Perhaps tweaks that need to be made to the animated library?

@necolas
Copy link
Owner

necolas commented Oct 30, 2016

I don't think animated is maintained. I'd be open to a PR that reintroduces the RN Animated library.

@faceyspacey
Copy link

faceyspacey commented Oct 30, 2016

Have you looked into samsara: http://samsarajs.org

It's interface shares a lot in common with Animated (Animated being a sub-set of Samsara). I feel like it could be a powerful way to power a future Animated for both and RN and react on the web. Just last week I shared my thoughts about it with its creator (ex-Famous employee) here:

dmvaldman/samsara#9

It's probably a lot of work to get a full samsara interface in RN, but what may in fact be surprisingly easy is a mirror of the Animated api, just using Samsara to power it. And obviously the hope would be that its performance is a lot better.

@BodhiHu
Copy link
Author

BodhiHu commented Dec 24, 2016

Perhaps react-motion (https://github.com/chenglou/react-motion) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants