vueuse / motion

🤹 Vue Composables putting your components in motion
https://motion.vueuse.org
MIT License
2.37k stars 82 forks source link

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

Closed rufusmai closed 8 months ago

rufusmai commented 1 year ago

(I'm reopening this issue from #38 because I'm not sure if this issue is related to #63)

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

Here is 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.

aonghas commented 1 year ago

Same with me!

manch1915 commented 1 year ago

Same with me

LePulsar commented 1 year ago

Same for me. Does anyone know how to handle this?

MIN202299 commented 1 year ago

same with me

BobbieGoede commented 8 months ago

This is resolved in the v2.1.0!