翻书效果


<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Titletitle>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        body{
            text-align: center;
        }
        ul{
            width: 100%;
            list-style: none;
            height: 300px;
            background-color: gray;
            -webkit-perspective: 500;
            box-sizing: border-box;
            padding: 50px;
        }
        li{
            width: 200px;
            height: 100px;
            background-color: #fff;
            margin: 0 auto ;
            position: absolute;
            display: inline-block;
        }
        .anim1{
            animation: anim 1s infinite;
        }
        @keyframes anim {
            to{
               transform: rotateY(-180deg);
            }
        }
    style>
head>
<body>
<ul>
    <Li>Li>
    <Li class="anim1">Li>
    <Li class="anim2">Li>
ul>
body>
html>

你可能感兴趣的:(CSS)