chenglou / react-motion

A spring that solves your animation problems.
MIT License
21.69k stars 1.16k forks source link

Animation after elements loaded in dom. #332

Open antherkiv opened 8 years ago

antherkiv commented 8 years ago

Hello, maybe my ask it's a nooby question, but I want to ask, how can I handle the loading of images (with promises) before the animation begins?, best regards.

bloodyowl commented 8 years ago

what do you mean exactly by

how can I handle the loading of images (with promises) before the animation begins?

antherkiv commented 8 years ago

I need to load the images before animation, because I need to now the heitght of component (I can't without images) then I need to do the animation after the children component got charged in the dom.

nkbt commented 8 years ago

Check how react-collapse is done, steal ideas :) On Tue, 31 May 2016 at 01:51, Antherkiv notifications@github.com wrote:

I need to load the images before animation, because I need to now the heitght of component (I can't without images) then I need to do the animation after the children component got charged in the dom.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chenglou/react-motion/issues/332#issuecomment-222519007, or mute the thread https://github.com/notifications/unsubscribe/AAKsoAyNQhiw7_fc7yxLhjO0oxHLIVWLks5qGwebgaJpZM4Ip42g .