搜索

首页  >  问答  >  正文

html - css hover下元素消失为何加translate3d(0,0,0)

雷雷
女神的闺蜜爱上我女神的闺蜜爱上我2793 天前979

全部回复(2)我来回复

  • 迷茫

    迷茫2017-06-27 09:21:01

    加translate3d(0,0,0)应该是要开启硬件加速(hack技巧),消失的生效代码应该就是opacity: 0;那句。

    回复
    0
  • 阿神

    阿神2017-06-27 09:21:01

    Using -webkit-transform: translate3d(0,0,0); will kick the GPU into action for the CSS transitions, making them smoother (higher FPS).大概是说使用硬件加速

    回复
    0
  • 取消回复