Fix issue when option transitions=true

There wasn't a check for rtl/ltr mode when writing the translation3d
declaration.