简体   繁体   中英

CSS3 transform scale display judder

i've got following problem: when im using transform scale for hover the image shows judder.

Here my Code:

<div class="item">
</div>

.item {
    background: transparent url("http://s14.directupload.net/images/141019/s3r8avxj.jpg") no-repeat 0 0 / 176px 176px; 
    width: 176px;
    height: 176px;
    display: inline-block;
    font-family: Arial;
    margin: 0px 10px 10px 0px;
    border: 5px solid #fff;
    -webkit-box-shadow: 0 0 2px 1px rgba(0,0,0,0.4);
    box-shadow: 0 0 2px 1px rgba(0,0,0,0.4); 
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -ms-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
}

.item:hover {
    transform: scale(1.05);
    border: 5px solid #fff;
    cursor: default;
}

Fullscreen view: http://jsfiddle.net/excsa15w/embedded/result/

Code: http://jsfiddle.net/excsa15w/

Is there a possibility to remove the judding?

Thanks in advance

Change property

background: transparent url("http://s14.directupload.net/images/141019/s3r8avxj.jpg") no-repeat 0 0 / 176px 176px; 

To

background: transparent url("http://s14.directupload.net/images/141019/s3r8avxj.jpg") no-repeat; 

jsfiddle

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM