Skip to main content
Participant
Sep 28, 2020 1:52 PM UTC
Answered

Fixed position when scrolling until a certain point

Using Adobe XD, is there a way to add a 'fixed position when scrolling' to a button, that stops being fixed when reaching a certain point of the artboard?

 

(For example, Spotify Apps "Shuffle Play Button" will scroll until it reaches the top of the page where it then becomes fixed)

 

Appreciate any help 🙏

    Spas K.
    Spas K.Correct answer
    Community Expert
    Sep 28, 2020 6:13 PM UTC

    Hi Will, unfortunately, this functionality isn't yet supported.

    You can make an object either fixed or scrollable, you can't add a condition that will change this setting.

     

    I have been using sort of a workaround - I use a cover rectangle with the color of the background, and have the fixed version of the element underneath it.

    Here's a quick demo with a prototype:
    https://xd.adobe.com/view/096a929f-d848-435d-ac9d-259dbb552b43-5c39/

    I made the cover a slightly different color in the second screen, so you can see it.

     

    And here's the file, so you can see how it's set up:
    https://www.dropbox.com/s/4ly9nnlxaymrx69/Fixed_Scroll_demo.xd?dl=0

    It is not perfect, and not applicable for every use case, but it is enough for most of these sticky header scenarios.

    Until we get it as a feature, that's the only way to sort of achieve that effect.

     

    Update: Made a small tutorial on how to achieve this

     

    Hope this helps.

    Cheers!

    6 replies

    Participant
    Jun 3, 2023 2:18 PM UTC

    Hi, 
    Is this function in Adobe xd is now available or not?

    Translate
    Spas K.
    Community Expert
    Spas K.Community ExpertCorrect answer
    Community Expert
    Sep 28, 2020 6:13 PM UTC

    Hi Will, unfortunately, this functionality isn't yet supported.

    You can make an object either fixed or scrollable, you can't add a condition that will change this setting.

     

    I have been using sort of a workaround - I use a cover rectangle with the color of the background, and have the fixed version of the element underneath it.

    Here's a quick demo with a prototype:
    https://xd.adobe.com/view/096a929f-d848-435d-ac9d-259dbb552b43-5c39/

    I made the cover a slightly different color in the second screen, so you can see it.

     

    And here's the file, so you can see how it's set up:
    https://www.dropbox.com/s/4ly9nnlxaymrx69/Fixed_Scroll_demo.xd?dl=0

    It is not perfect, and not applicable for every use case, but it is enough for most of these sticky header scenarios.

    Until we get it as a feature, that's the only way to sort of achieve that effect.

     

    Update: Made a small tutorial on how to achieve this

     

    Hope this helps.

    Cheers!

    Translate
    Participant
    Mar 8, 2021 5:37 AM UTC

    Thanks my friend. It's great to have helpful people like you here when adobe is not doing the updates it's supposed to do.

     

    Translate
    Harshika Verma
    Community Manager
    Community Manager
    Sep 28, 2020 5:15 PM UTC

    Hi there,

     

    Thank you for reaching out. Would you mind checking this tutorial: https://www.google.com/search?q=fixed+scroll+position+in+xd&rlz=1C1GCEU_enIN907IN907&oq=fixed+&aqs=chrome.1.69i57j35i39l2j0l2j69i60l3.3880j0j7&sourceid=chrome&ie=UTF-8#kpvalbx=_XRNyX5dOzZ71A8CZqIgP41?

     

    Let us know if that helps.

     

    Thanks,

    Harshika

    Translate
    Participant
    Mar 18, 2021 6:16 PM UTC

    Turtorial doesn't answer the question how to stop fixed when scrolling at certain point 😞

    Translate