栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > Web开发 > Html/CSS > CSS教程

超简单-C3实现旋转六边形

CSS教程 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

超简单-C3实现旋转六边形



    
 
 正六边形旋转
 
     *{
  margin: 0;
  padding: 0;
     }
     .kevin{
  width: 174px;
  height: 100px;
  margin: 50px auto;
  position: relative;
  transition: all 1s ease-in-out; 
     }
     .hexagon{
  width: 174px;
  height: 100px;
  background-color: rgba(0,0,0,0.4);
  position: relative;
  left: 0;
  top: 0;
     }
     .hexagon:before{
  content: "";
  display: block;
  width: 174px;
  height: 100px;
  background-color: rgba(0,0,0,0.4);
  transform: rotate(60deg);
  position: absolute;
  left: 0;
  top: 0;
     }
     .hexagon:after{
  content: "";
  display: block;
  width: 174px;
  height: 100px;
  background-color: rgba(0,0,0,0.4);
  transform: rotate(-60deg);
  position: absolute;
  left: 0;
  top: 0;
     }
     .kevin:hover{
  transform: rotate(360deg);
  transition: all .5s ease-in-out; 
     }
 
    
    
 
     
 
    
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/243342.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号