I'm trying to write an each function that looks at each list item and then within that item to each span, applying some css to each span uniquely..
When I start to get down into it I get lost and can't really figure out how to correctly get the unique values to each span within each list item..
http://jsfiddle.net/anthonybruno/9sKNZ/2/
Any ideas?
Edit - I realize that this seems like a job for class names but I have simplified the type of css I am trying to use for this example only. Later on I'll be passing some more complex css that will rely on other values such as scrollTop and viewportHeight.
spanOnebe?pinkorpurple? Why the array with stuff? I don't get it...I mean if it's css why not set it in a css stylesheet and if you need to change styles use classes withaddClassremoveClasstoggleClassspanOne,spanTwoandspanThree? Can I change that structure?