About Scroll Theme
Scroll Theme Background
Change the background color of your page as visitors scroll through sections.
Features
Per-section color: set a target color for every section.
Trigger point: choose Top, Center or Bottom of the viewport for each section.
Per-section transition: use Framer's transition control for every color change.
Any order: sections are detected by their position on the page, so the order in the list doesn't matter.
Start color: set the background shown before the first section is reached.
Responsive: ignores layers hidden at other breakpoints, even when the same ID is used on desktop, tablet and phone.
Late content: picks up sections that render late, such as CMS content.
Reduced motion: switches colors instantly for visitors who prefer reduced motion.
Lightweight: nothing runs while the page is idle, and scrolling doesn't re-render React.
How to use
Place the component on your page and set its Position to Fixed, with Top, Left, Right and Bottom all set to 0, and Width and Height set to Fixed as well. This keeps the background pinned to the screen and covering it while visitors scroll.
Make sure the component sits below your content: send it to the back or give it a lower z-index than your content.
Turn pointer events off (set to none) on the component, so it never blocks clicks, hovers or scrolling on the content above it.
Set the background of your content frames and sections to transparent. A section with its own background color will cover the component and hide the color changes.
Give each section on your page an ID (for example: hero, work, footer).
Add one entry per section in the component: Section ID, target color, trigger and transition.
Preview the page and scroll. The canvas only shows the start color.
Add the component to each page that should use the effect. Settings are per page, so you can use different sections and colors on every page.
Tips
IDs must match exactly (for example: hero). A leading "#" is optional.



