I created react-ambient, an open-source library which powers dynamic website backgrounds based on the most visible content.
react-ambient lets you colocate your dynamic background visualization, image, or color block with the section of content that triggers it. It also handles the calculation of the "most visible" content and all of the plumbing to render and transition between backgrounds.
I made this for my own site, but I feel like it may be useful for others!
react-ambient lets you colocate your dynamic background visualization, image, or color block with the section of content that triggers it. It also handles the calculation of the "most visible" content and all of the plumbing to render and transition between backgrounds.
I made this for my own site, but I feel like it may be useful for others!