Detecting 'transform: translate3d' support

前端 未结 12 1680
遥遥无期
遥遥无期 2020-11-29 19:03

Does anyone know how I would detect transform: translate3d(x,y,z) support is available?

My issue is that I want to use translate3d across b

12条回答
  •  误落风尘
    2020-11-29 19:51

    I'd suggest using Modernizr.

    It does feature detection for a whole range of browser features, including 3D transforms. It also provides a method of specifying CSS rules for browsers which have various features or not, so it sounds like it will do exactly what you're looking for.

    Hope that helps.

提交回复
热议问题