SOURCE

console 命令行工具 X clear

                    
>
console
<div class="image light" style="background-image: url(https://gw.alicdn.com/tfs/TB1IkFjD1H2gK0jSZJnXXaT1FXa-900-500.png)"></div>这是一张高光滑动的图片
.image {
    width: 450px;
    height: 250px;
}

.light {
    display: inline-block;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.light::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: -100%;
    z-index: 1;
    width: 100%;
    height: 100%;
    transform: skewx(-25deg);
    transition: none;
    background-image: -webkit-linear-gradient(
        0deg,
        rgba(255,255,255,0) 20%,
        rgba(255,255,255,.4) 50%,
        rgba(255,255,255,0) 80%
    );
}

.light:hover::after {
    transition: left .7s ease;
    left: 100%;
}