CSS 3 - transition prefixes - which ones to use?

后端 未结 6 1093
一个人的身影
一个人的身影 2020-12-29 07:09

I have a question regarding the CSS vendor prefixes for transition.

This source states that \"you need to use all the usual prefixes to make this work in all browser

6条回答
  •  不知归路
    2020-12-29 07:57

    I'll go against the grain here and suggest a different approach: if you've got a website set up with analytics, check the browser stats and versions and see what your users are actually using.

    Sure, you can drop the majority of prefixes, but if your users are on outdated browsers (for whatever reason), they won't get the features.

    No arbitrary website can tell you the exact prefixes you need, only you can figure out that information from your own data.

    If you don't have the data, add all the prefixes to support as many people as possible. Then check the data in a few months and refactor if you need to.

提交回复
热议问题