I'm sure you can only use the crossfade css css using the new css animation features. My requirements are that it should work for an arbitrary number of images without javascript.
Does anyone know how to do this?
How do I start:
img(src='img1.png') img(src='img2.png') img(src='img3.png') img(src='img4.png')
Then all the images are set on top of each other, and the first one shows:
img opacity 0 transition 1s position absolute &:first-child opacity 100
Now, how do I go through each image?
Edit: seems impossible. Requires javascript.
Harry
source share