A JS gradient generator based on the number of elements it's applied to