3D轮播图

demo.html





    
    
    Document
    



    

demo.css

* {
    margin: 0;
    padding: 0;
    font-size: 0;
}

.wrapper {
    position: relative;
    transform-style: preserve-3d;
    perspective: 800px;
    height: 200px;
    margin-top: 200px;
}

.wrapper img {
    position: absolute;
    width: 300px;
    height: 200px;
    top: 50%;
    left: 50%;
    margin-top: -100px;
    margin-left: -150px;
    border-radius: 8px;
    transition: transform 0.8s ease-in-out;
}

你可能感兴趣的:(轮播图)