image moves on hover - chrome opacity issue

前端 未结 14 2123
一向
一向 2020-11-27 10:19

There seems to be an issue with my page here: http://www.lonewulf.eu

When hovering over the thumbnails the image moves a bit on the right, and it only happens on Chr

相关标签:
14条回答
  • 2020-11-27 11:03

    The solution alpipego was served me in this problem. Use -webkit-backface-visibility: hidden; With this the image no move in hover opacity transition

    /* fix error hover image opacity*/
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    
    0 讨论(0)
  • 2020-11-27 11:10

    For some reason Chrome interprets the position of elements without an opacity of 1 in a different way. If you apply the CSS attribute position:relative to your a.img elements there will be no more left/right movement as their opacity varies.

    0 讨论(0)
提交回复
热议问题