Skip to main content
Question

Scroll-to within column

  • April 25, 2024
  • 5 replies
  • 1273 views

I have a help page where I on the top level have a navigations bar, header section, and main content section. Within the main content section I have two columns. The one on the left is a menu of all help topics that stick to the top when scrolling. The one on the right are the help topics themselves.

I want to use links on the left to scroll-to topics on the right. But when I create an interaction, all I can select from the list are the two top level objects nav bar and header section. Is there anyway to solve this by adding tags to different parts in the right column?

This topic has been closed for comments

5 replies

  • Figmate
  • 1870 replies
  • April 26, 2024

Hi @Krister_Nielsen, Thanks for reaching out about scroll to action. I appreciate you sharing helpful screenshots!

Just to make sure I’ve got this right, are there specific objects for each help topic within the green frame on the right side?
If so, are these objects for each help topic directly nested within that green frame, or are they found within the top-level frame?
You can check this in the Layers panel on the left side bar.

When you add a ‘Scroll to’ action using the Interactions section of the Prototyping panel, you can select direct children of scrollable frames. If you want to choose any object within the top-level frame, you’ll need to drag out a noodle and link it to the object that you want to set as the destination.
Please take a look at the details here: Prototype actions

I hope this helps even a bit. But if there’s something I didn’t quite get right, please don’t hesitate to let us know.

Also, we’re always open to thoughts and suggestions from our community members too, so feel free to join the conversation!

Thanks,


Not sure how to structure this correctly, but as you can see in the image, Service form has a child called Content which contain the two columns. When I click either topic in the menu on the left (first column), I want to scroll down to the topic on the right (second column). Currently I only have two topics, but idea is to add many more so there might be some height to that column. So these are siblings in a sense, so maybe this is why it won’t work?

Not sure how a website is built up, but if you could tag certain rows or objects in my tree, maybe I could tell their X/Y position and scroll to them?


VicStrick
  • New Member
  • 5 replies
  • April 26, 2024

Hey Krister,
are you expecting an outcome like this?


Sorry for late reply. Yes, that’s exactly it. Can’t figure out how to make it work. ^^


VicStrick
  • New Member
  • 5 replies
  • May 27, 2024

I completely forgot to answer, noooo 😦
My apologies, I hope this can still help you:

Before we start make sure you have the “Content Column” (right column) set up correctly:

  1. It has to be on fill (if you have it in hug it most likely won’t work)

  2. And you have to select “Vertical overflow” in the prototype tab. This makes sure you can scroll even without the buttons.

If it shows you a “!” in the overflow selection make sure you check “Clip content” for the column

After that we can actually start with the interaction 😃
But there is a problem: Adding the interaction in the prototype sidebar wont work.


→ You can only choose “top level” layers to scroll to, but you also want to be able to choose children.

What you have to do is:

  1. Be in prototype mode, hover over the layer you want to be able to press and start pressing the plus Button:

  2. And then drag it to the layer you want to scroll to:

In this case I have already added “onClick” and “Scroll to” and if you like to have the scolling animated, you can also add it here instead of “Instant”.

And now it should work :))

If it still won’t scroll, try deleting all other overflow options from other layers. Sometimes stuff gets confusing when 3 different layers have the option to scroll 😸

Let me know if it doesn’t work, I can maybe give you access to the file and you could reverse engineer it 👀


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings