motion icon indicating copy to clipboard operation
motion copied to clipboard

`visible` lifecycle variant is flickering when element is no more intersecting

Open rufusmai opened this issue 4 years ago • 1 comments

If an element goes out of the viewport, the fade out animation starts. This brings the element back in to the viewport and may cause a fade in animation.

Maybe a cooldown should be added to the useIntersectionObserver usage, here?

rufusmai avatar Oct 26 '21 19:10 rufusmai

Hello @rufusmai ;

Could you please provide a reproduction to this issue?

Thanks a lot 🙏

Tahul avatar Mar 16 '22 01:03 Tahul

I think this is somehow related to https://github.com/vueuse/motion/issues/63

I am closing this issue as no reproduction has been provided, feel free to re-open if you still have the issue!

Tahul avatar Sep 11 '22 02:09 Tahul

Hello, I'm not sure how #63 is related to that. But I created a reproduction: https://stackblitz.com/edit/vue-wsbrnv?file=src/App.vue

First, the image is not showing up after page load, even though it's in the viewport. It works after scrolling down and up again. Second, if you scroll down again, before the image is hiding, it starts to flicker.

rufusmai avatar Dec 07 '22 12:12 rufusmai