This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Mike Kotsch
Posted Apr 29 - Read on Facebook

Hi, I'm having a disappearing Layer, whenever I have a draggable element that is supposed to snap back into position. Is this happening on your machines as well? And if so, why is it?


Benjamin Den Boer

Hey Mike Kotsch - ah, I see what's going on. The momentum of the draggable layer is interferring with your animation that snaps it back to its original position. So, it tries to simulate some momentum while you fire your animation, and the two sometimes clash. DragEnd gets triggered before the momentum animation, and DragAnimationDidEnd afterwards. :-)

Luckily, it's an easy fix: drag.draggable.momentum = false

Mike Kotsch


Read the entire post on Facebook