Skip to main content
Dmitry_Avrov
New Participant
March 7, 2023
Question

Content jumps up and down with using of smart animate and AL

  • March 7, 2023
  • 28 replies
  • 10862 views

I use some components in footer, that have two states: collapsed and expanded. All components and the main frame have Auto Layout. When I click on the collapsed component in the prototype the screen jumps up and down before the list expands with animation.

As I understand, the problem is connected to constraints of the contents. When I choose Smart Animation, I can’t set checkbox “Preserve scroll position”, because there is no checkboxes.

When I choose “Instant” and choose the “Preserve scroll position” option everything works well. But I want to do it with animation.

drive.google.com
This topic has been closed for replies.

28 replies

Ori_Perez
September 13, 2023

True, separate pages. However I also encountered similar issues on multiple components within a single page, in most cases the issues were with components with multiple variants and inside elements with auto layout. Try breaking apart or place complex components outside of autolayout elements, might do the trick.

Petr_Siroky
New Participant
September 13, 2023

That’s going to be a problem, because I need the auto layout for the content to be pushed. Essentially, I’m in a very similar position as OP, and it’s frustrating. Not a big deal, because it’s just a prototype and doesn’t have to look perfect, but it’s a shame that there are so many bugs in Figma.

Petr_Siroky
New Participant
September 13, 2023

I suppose I’ll try breaking down the components within components that I have and see if anything changes. This is what I’m opening up, and all those checkboxes etc. are components.

Brian-K
New Member
November 21, 2023

Was having same issue (jumping up and down, on same page, with auto layout).

Seems like having a fixed height on the main container fixed it. So try the following:

  1. Add auto-layout on the main, outer most frame (let’s call it “main-frame”).
  2. Set the main-frame’s height to “Fixed”.
  3. Adjust the height of the main-frame to match your prototype device size. I typically use 1440x1092ish. So, 1092 height.
  4. Uncheck “clip content” on that main-frame. (Not necessary, but allows you to see what’s below the cut off height.)
  5. Check that it’s working as intended.

That fixed the prototype animation issue for me. Unfortunately, the editor view doesn’t look as slick now for the devs or presentations because the content is spilling out of the main-frame container. This can be managed though by having a separate file for interactive prototype that only you’ll see.

Ben_Callow
New Member
December 19, 2023

Thanks for this. Feels pretty silly if I’m honest, but this helped me fix the issue.

When it comes to things spilling out of the main-frame container: Turning off “clip content” on the main frame and allowing vertical scroll overflow allows for the entire page to be viewed. Just need to ensure that the auto layout / hug frame contained within the main doesn’t also have overflow and you should be good

In short - using auto layout with the main frame seems to be the culprit with my use case

Thanks, Brian

Ben_Callow
New Member
December 20, 2023

Wow… Tried to recreate the issue and could not until I turned off scroll overflow again. Appears that the extra nesting (in this case anyway) wasn’t necessary as it seemed. I can watch the issue arise and disappear each time I turn vertical overflow for the main page

Conclusion - Main frame can be auto layout w/ hug as long as scroll overflow is turned on

January 17, 2024

Wow this worked… ty!

Muhammed_Suhail
January 23, 2024

Thank you, It’s fixed mine

Andrei6
March 8, 2024

Thanks Brian! This fixed it🙏

Sarah_Dyer
New Member
March 22, 2024

thank you, making the overall page/frame names the same did fix it for me.

very annoying though since having a bunch of frames with the same name also makes it hard to link to the correct one if you’re scrolling through the options of which screens to navigate to for the prototype, and also hurts the file organization. i had changed the names for a reason. 😭