Skip to content

Instantly share code, notes, and snippets.

// 1. I had some issues with flickering, changing the event to "onscrollend"
// 2. My design requires not just opacity changes but different design for active / inactive buttons so modified for this accordingly
// Configuration
var disabledBackground = "#fff";
var disabledBorder = "#5b5857";
var enabledBackground = "#e5001b";
var enabledBorder = "#cccccc";