zoukankan      html  css  js  c++  java
  • 旋转轴心案例

    <style>
    *{
    padding: 0;
    margin: 0;
    }
    .pkBox{
    155px;
    height: 219px;
    margin: 200px auto;
    position: relative;
    }
    .pkBox>img{
    100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transition: transform 2s;
    transform-origin: right top;
    }
    .pkBox:hover>img:nth-of-type(1){
    transform: rotate(60deg);
    }
    .pkBox:hover>img:nth-of-type(2){
    transform: rotate(120deg);
    }
    .pkBox:hover>img:nth-of-type(3){
    transform: rotate(180deg);
    }
    .pkBox:hover>img:nth-of-type(4){
    transform: rotate(240deg);
    }
    .pkBox:hover>img:nth-of-type(5){
    transform: rotate(300deg);
    }
    .pkBox:hover>img:nth-of-type(6){
    transform: rotate(360deg);
    }

    </style>
    </head>
    <body>
    <div class="pkBox">
    <img src="images/img/pk1.png" alt="">
    <img src="images/img/pk2.png" alt="">
    <img src="images/img/pk1.png" alt="">
    <img src="images/img/pk2.png" alt="">
    <img src="images/img/pk1.png" alt="">
    <img src="images/img/pk2.png" alt="">
    </div>
  • 相关阅读:
    P1662 数7
    P3645 [APIO2015]雅加达的摩天楼
    P3396 哈希冲突
    P7479 至曾是英雄的您
    P7480 Reboot from Blue
    Apache Commons Collections
    ESP8266 WIFI杀手
    ESP8266 固件升级
    ESP8266 MicroPython安装与使用
    Window 安装子系统
  • 原文地址:https://www.cnblogs.com/lujieting/p/10182614.html
Copyright © 2011-2022 走看看