How to make a sticky navigation bar change color on scroll

Since Figma doesn’t have an “On scroll” trigger, the only way to do what you want is to use tricks like Mouse enter > Navigate to > Frame.

For the Figma team to review and add this feature, please vote for this feature request: "On Scroll" trigger for the prototype