In this example we have a random collection with color and x,y values. The color is set as background color and value of x assign to the css property 'left' and value of y assign to css property 'top'. Each time when you refresh the page new values will set.