07 - CSS3 - 照片墻旋轉(zhuǎn)


本文是針對剛學(xué)編程的小白,都是一些基礎(chǔ)知識,如果想了解更多深層一點的東西,歡迎移步本人博客!!
博客地址 點擊跳轉(zhuǎn)


< ! ---------- HTML ----------- >

<ul>
    <li>
        ![](../素材/rotateY.jpg)
    </li>
   <li>
        ![](../素材/2.jpg)
    </li>
   <li>
        ![](../素材/3.jpg)
    </li>
   <li>
        ![](../素材/4.jpg)
    </li>
</ul>

< ! --------- Style --------------- >

<style>
    *{
        margin: 0;
        padding: 0;
    }
    ul{
        height: 400px;
        border: 1px solid #000;;
        background-color: skyblue;
        margin-top: 100px;
        text-align: center;
    }
    ul li{
        display: inline-block;
        list-style: none;
        width: 150px;
        height: 200px;
        background-color: red;
        margin-top: 100px;
        transition: all 1s;
        position: relative;
        box-shadow: 0 0 10px;
    }
    ul li:nth-child(1){
        transform: rotate(30deg);
    }
    ul li:nth-child(2){
        transform: rotate(-40deg);
    }
    ul li:nth-child(3){
        transform: rotate(10deg);
    }
    ul li:nth-child(4){
        transform: rotate(45deg);
    }
    ul li img{
        width: 150px;
        height: 200px;
        box-sizing: border-box;
        border: 5px solid #fff;
    }
    ul li:hover{
        transform: none;
        transform: scale(1.3);
        z-index: 998;
    }
</style>

< ! --------- 效果展示 ---------- >

**照片墻**
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Android 自定義View的各種姿勢1 Activity的顯示之ViewRootImpl詳解 Activity...
    passiontim閱讀 179,160評論 25 708
  • 發(fā)現(xiàn) 關(guān)注 消息 iOS 第三方庫、插件、知名博客總結(jié) 作者大灰狼的小綿羊哥哥關(guān)注 2017.06.26 09:4...
    肇東周閱讀 15,422評論 4 61
  • 那晚我做了一個夢。在夢中,我隱約地聽見小酥喃喃地說著:“結(jié)束了,一切都結(jié)束了?!毙褋頃r,縷縷陽光照進臥室...
    獨孤守望閱讀 571評論 0 1

友情鏈接更多精彩內(nèi)容