CSS transform doesn’t work in Mozilla browser

My code is similar to this, it works perfectly fine in Chrome but in Mozilla there’s no transition between the cards when I click

https://codepen.io/panfilov/pen/GogJVy