CSS styles are not working in Sharepoint 2016 Server On Premises

Yes, this is because your customization uses a CSS version that does not support transform (should be used in CSS3).

Per my test, I add following code in SharePoint server 2016 page with Script Editor web part, it works well.

enter image description here

Since HTML 5 and CSS3 is valid in the page, it will also be valid in SharePoint Designer, if this is a warning, please ignore it.