-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Slide flickers when is entering the viewport #168
Comments
Hi @morellodev, I'm thinking of migrating from react-reveal to react-awesome-reveal, but this looks like a blocker to me, can you tell me if there's any workaround for this? |
I had the same problem, after several days of rain and hot coffee I managed to discover a momentary solution at the time of writing this message. Using version 4.1.0 until they implement an updated solution. |
In case helpful for others, I just tried downgrading to 4.1.0 and worked for me also. Thanks @mirkoperamas! |
I am investigating 👀 |
I am here with same issue on version 4.1.0 chrome_A609tt2u8l.mp4 |
ty a lot, problem solved <3 |
I get flickering from the Slide animation when it enters the viewport. |
Also get flickering on Zoom animation, even on version 4.1.0. Anyone have a magic fix yet? |
One solution I found that seems to work is adding |
Version 4.1.0 solved the issue for me |
I'm 99% sure that this bug is caused by the browser occasionally hanging for a frame or two before starting animations, so when the element is mounted into the DOM it shows up as the style defined by its CSS instead of the beginning state of the animation. For now it's fixable by applying the beginning state of the animation as a style to the element. For example, with Tailwind's <Fade className={"opacity-0"}><p>I will gently appear as I enter the viewport</p></Fade> |
@stephenkarpeles, I also had the same issue for |
Slide and Zoom flicker when the element is just entering the view and certain conditions are met. Slide flickers when direction is up. Zoom flickers when it is styled. This bug is shown in this Code Sandbox, https://codesandbox.io/s/react-awesome-reveal-bug-vy35p2 . This is fixed by applying opacity: 0 when the element is not in view. resolve #168
Describe the bug
Elements are flickering when entering the viewport.
To Reproduce
Steps to reproduce the behavior:
CodeSandbox link: https://codesandbox.io/s/magical-elbakyan-g9u1e5?file=/src/App.tsx
Expected behavior
A smooth scrolling effect.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: