You can create a function Craft, which will take two arguments - active element and passive element.
On collision, compare the speed:
If A.speed>B.speed, then call Craft(A.animationName, B.animationName)
If A.speed<B.speed, then call Craft(B.animationName, A.animationName)