Images wiggles when hover (scale effect)

前端 未结 3 488
天涯浪人
天涯浪人 2020-12-18 07:42

My image links are wiggling a bit when I\'m hover the images. I don\'t know how to fix this :/ I\'m using the scale effect in css to make the pictures a bit bigger when hove

3条回答
  •  难免孤独
    2020-12-18 08:13

    It's a common problem with CSS3 transformations. I've notice that after text rotation. And I've found some strange solution. I don't know how this works - but works :) Just use some of CSS3 filters. Any filter. For webkit that would be maybe

    -webkit-filter: blur(0px);
    

    http://jsfiddle.net/Rfg2V/

    That wouldn't change default blur property, but will cause smooth transformation, translation, and give antialiasing effect.

    For Firefox you can use

    filter: url("data:image/svg+xml;utf8,#grayscale");
    

    This fixes the problem, but after that elements with filter properties may look a bit blurred. Not because blur filter, result is the same with any filter.

提交回复
热议问题