Is there some way (without javascript) to make the nth-child affect the CSS?
For example when I have 10 images loaded, I would fade the opacity in, and give each ima
CSS does not support using the current value of n, or the index of the child element currently being matched, from an :nth-child() expression as a variable, neither in calc() expressions nor var() expressions nor any other part of a property value.
The closest you can get is automating the manual process using a preprocessor that does support interpolating variables within selectors. This will work if you know the number of rules you need to build in advance, but only then.