1+X学习日志——扇形2D效果
2024-10-20 13:51:55
section{
width: 500px;
height: 300px;
border-bottom: 10px solid black;
position: relative;
margin: 100px auto;
}
div{
width: 30px;
height: 250px;
text-align: center;
left: 235px;
bottom: 15px;
position:absolute;
transition: 1s;
transform-origin: bottom;
}
div:nth-child(7){
background-color:black;
}
section:hover div:nth-child(1){
transform:rotate(90deg);
background: #66ccff;
}
section:hover div:nth-child(1){
transform:rotate(75deg);
background: #4e7386;
}
section:hover div:nth-child(2){
transform:rotate(60deg);
background: #20739c;
}
section:hover div:nth-child(3){
transform:rotate(45deg);
background: #344b1b;
}
section:hover div:nth-child(4){
transform:rotate(30deg);
background: #cc74a0;
}
section:hover div:nth-child(5){
transform:rotate(15deg);
background: #b1c760;
}
section:hover div:nth-child(6){
transform:rotate(-15deg);
background: #9bacb4;
}
section:hover div:nth-child(8){
transform:rotate(-30deg);
background: #63147a;
}
section:hover div:nth-child(9){
transform:rotate(-45deg);
background: #a31953;
}
section:hover div:nth-child(10){
transform:rotate(-60deg);
background: #10b4e6;
}
section:hover div:nth-child(11){
transform:rotate(-75deg);
background: #28b42f;
}
section:hover div:nth-child(12){
transform:rotate(-90deg);
background: #962655;
}
section:hover div:nth-child(13){
transform:rotate(90deg);
background: #8b7807;
}
section:hover div:nth-child(7){
background: #66ccff;
}
最新文章
- HTML Select 标签选择后触发jQuery事件代码实例
- 第二十七篇:SOUI中控件属性查询方法
- mac安装paramiko
- mysql5.6.23免安装配置
- Android: 解决ADB server didn't ACK
- thinkphp 模板调用数据
- JSP-01-搭建Web应用环境
- CentOS FireFox Flash Player
- 《算法导论》习题解答 Chapter 22.1-4(去除重边)
- 找工作笔试面试那些事儿(10)---SQL语句总结
- C#编码好习惯,献给所有热爱c#的同学
- C语言文件 "w+"与"wb+"区别
- webpack4打包nodejs项目进阶版——多页应用模板
- 2018-2019-2 20165212《网络对抗技术》Exp2 后门原理与实践
- PHP eval函数
- SegmentedControl的使用
- sublime 下面开发
- Golang学习系列:(一)介绍和安装
- 开发Web版一对一远程直播教室只需30分钟 - 使用face2face网络教室
- 领扣-两数之和-Python实现
热门文章
- _blocking_errnos = {errno.EAGAIN, errno.EWOULDBLOCK} pip
- 绿色地狱 - 纽博格林赛道详解 | Nürburgring
- 浏览器渲染基本原理(二):JS引擎的工作方式
- openresty开发系列33--openresty执行流程之3重写rewrite和重定向
- 简单的 js 模版引擎
- [LeetCode] 138. Copy List with Random Pointer 拷贝带随机指针的链表
- springboot-把web项目打成war包部署到外部tomcat
- python zip函数(11)
- 用vue实现列表分页和按钮操作
- [转帖]Linux教程(14)- Linux中的查找和替换