Webkit Opacity Transition Issues with Text

前端 未结 2 1915
清歌不尽
清歌不尽 2020-12-24 09:20

Situation:

View the jsFiddle

Inside of a div I have an image followed by text which has a font-weight of 900 on it. In my locall

2条回答
  •  醉酒成梦
    2020-12-24 10:01

    A possible solution would be to make the opacity transition not to 1, but .999 - http://jsfiddle.net/ErVYs/2/

    div {
        width: 200px;
        text-align: center;
        opacity: 0.7;
        transition: opacity ease-in 0.25s;
        -webkit-transition: opacity ease-in 0.25s;
        -moz-transition: opacity ease-in 0.25s;
        -o-transition: opacity ease-in 0.25s;
    }
    
    div:hover {
        opacity: .999;
    }
    

提交回复
热议问题