A CSS transition can be used to trigger an animation of a CSS property when said property changes. A CSS animation can be used to animate multiple properties at the same time.
Is there a way to combine these, so that when some CSS property changes, it triggers an animation of not just itself, but other properties as well?
My concrete use case would be the following: I have a bunch of small images that I combined into one big image, and I use object-position to show various parts of it. I would like to create a CSS animation such that when I change the object-position, the image's opacity would first go to 0%, then the object-position would change, and then the opacity would go back to 100%. I can easily formulate this as an animation, but I don't know how to trigger it from the object-position change.