Skip to main content

Plaid

Last updated: 9/15/2025

About

This button from the Plaid website has an interesting hover effect that changes the background color randomly based on four CSS variables. To do so, a small bit of JavaScript is used to randomly select a CSS variable that is then applied to the button via style.setProperty().