react-awesome-reveal icon indicating copy to clipboard operation
react-awesome-reveal copied to clipboard

Origin animation distance

Open amingarro opened this issue 4 years ago • 6 comments

Please, could you add this feature?

Example: distance="50px" <Fade direction="right" distance="50px" cascade="true" damping="0.3">

Thank you very much for your work, greetings.

amingarro avatar Aug 18 '21 23:08 amingarro

Hi, you can only play with the fraction prop listed here, because this is the way the Intersection Observer API works.

Anyway, be sure to pass the props using the right types:

<Fade direction="right" cascade={true} damping={0.3}>

morellodev avatar Aug 21 '21 06:08 morellodev

I don't think it's what @amingarro meant. distance here is relative to how much the element should translate during its animation. The default is a translate of 100%, but that's way too much in most cases.

nagman avatar Sep 02 '21 19:09 nagman

I have the same problem I need the property "distance", is there any temporary solution ?

000Erick avatar Dec 09 '21 14:12 000Erick

You'll need to use custom keyframes, code snippet here: https://github.com/morellodev/react-awesome-reveal/issues/43

yang avatar Mar 16 '22 07:03 yang

Thoughts on adding this natively in the main component? Fade and Slide ?

josuearrieta avatar Sep 12 '23 16:09 josuearrieta

yes, this is needed. please add asap. should be simple to implement.

SteveAtKlover avatar Sep 20 '23 22:09 SteveAtKlover