Unfortunately it's not possible to "extend" a property in another rule in CSS, no matter if it's a transition
or another property.
Some alternatives may be:
Creating a rule for the combination of the classes
.class1.class2 {transition:background-color 0.4s, top 1s;}
The cons are that you have to create such rule for each of the relevant combinations. This also means code duplication.
Changing the html to eliminate the need to combine the rules
Find a proper way of representing the html objects so you won't need to extend the rules. In my case it's:
<div class="class2">
<div class="class1">
</div>
The cons are a bit more complicated html. On the other hand you avoid duplicate code, and make your css more reusable.