当前位置:网站首页>渐变
渐变
2022-06-26 02:49:00 【小菜鸟码住】
渐变
颜色渐变,旋转,变形,缩放
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
.*{
margin: 0;
padding: 0;
}
.div1{
width: 300px;
height: 300px;
margin: 200px;
/*border: 2px solid red;*/
background:linear-gradient(45deg,#fff 20px,red 20px,green 20px);
/*background: repeating-linear-gradient(red,yellow 10%,green 20%);*/
}
@keyframes mymove{
0%{
left: 0;
top: 0;
}
50%{
left: 300px;
top: 0;
}
100%{
left: 300px;
/*top: 300px;*/
}
}
.div2{
position:relative;
top:0;
left: 0;
width: 800px;
height: 300px;
background: url(img/img/img/img0.gif);
animation: mymove 1s;
transform: translate(-1%,-10%);
border: 2px solid red;
background: linear-gradient(to bottom left,red,yellow,green);
background: radial-gradient(50% 50%,red 0%,yellow 20%,green 80%,yellow);
}
.div3{
width: 300px;
height: 300px;
position: absolute;
top: 50%;
left: 50%;
margin: -20px 100px 10px -10px;
border: 2px solid red;
background: linear-gradient(to bottom left,red 20%,yellow 40%,green);
}
.div4{
width: 300px;
height: 300px;
border: 2px solid red;
margin: 0 auto;
background: linear-gradient(60deg,red,yellow,green);
/*background:repeating-linear-gradient(to bottom right,green 10%,blue 20%);*/
}
.box button{
width: 70px;
height:30px ;
float: right;
transform: skew(50deg);
/*border: 1px solid blue;*/
background: linear-gradient(45deg,blue,orange,green);
}
.div4:hover{
transform:rotateX(60deg);
}
.suo:hover img{
width: 450px;
height: 280px;
border: 1px solid yellow;
margin: 0 auto;
transform: scale(1.2,1.2);
}
.div1:hover img{
transform: scale(1.5,1.5);
}
</style>
</head>
<body>
<div class="div1">
<img src="img/musicBtn.png"/>
</div>
<div class="box"><button>按钮</button></div>
<div class="div2"></div>
<div class="div3"></div>
<div class="div4"></div>
<div class="suo">
<img src="img/news.jpg"/>
</div>
<!--<script>
//获取节点
var div2 = Document.getElementById('div2');
var img = div2.children[0];
//绑定划入事件
</script>-->
</body>
</html>
边栏推荐
- 【论文笔记】Manufacturing Control in Job Shop Environments with Reinforcement Learning
- Is it safe to open an account in flush online? How to open a brokerage account online
- 限制输入字符长度length英文1个字符中文2个字符
- 力扣(LeetCode)176. 第二高的薪水(2022.06.25)
- Wealth freedom skills: commercialize yourself
- How to prompt
- Drawing structure diagram with idea
- 【论文笔记】Supersizing Self-supervision: Learning to Grasp from 50K Tries and 700 Robot Hours
- Install development cross process communication
- Distributed e-commerce project grain mall learning notes < 3 >
猜你喜欢
经典模型——NiN&GoogLeNet
【哈希表】改进,拉链法哈希结构——直接用两个索引查找,不用每次都hash和%一遍
[reading papers] fbnetv3: joint architecture recipe search using predictor training network structure and super parameters are all trained by training parameters
Wealth freedom skills: commercialize yourself
附加:HikariCP连接池简述;(并没有深究,只是对HikariCP连接池有个基本认识)
解析创客空间机制建设的多样化
《你不可不知的人性》經典語錄
Business process diagram design
Dual batteries in series, hardware design
Drawing structure diagram with idea
随机推荐
【解决】CMake was unable to find a build program corresponding to “Unix Makefiles“.
Golang regexp package use - 06 - other usage (Special Character conversion, find regular Common prefix, Switch gourmand mode, query regular Group NUMBER, query regular Group name, cut with regular, qu
[system architecture] - how to evaluate software architecture
Clion项目中运行多个main函数
Interpreting Oracle
显卡、GPU、CPU、CUDA、显存、RTX/GTX及查看方式
stm32Cubemx:看门狗------独立看门狗和窗口看门狗
解析少儿编程的多元评价体系
力扣(LeetCode)176. 第二高的薪水(2022.06.25)
The "more" option of Spreadtrum platform dearmcamera2 is removed
js array数组json去重
Authorization of database
【论文笔记】Deep Reinforcement Learning Control of Hand-Eye Coordination with a Software Retina
kotlin快速上手
论文回顾:Unmixing-Based Soft Color Segmentation for Image Manipulation
【哈希表】很简单的拉链法哈希结构,以至于效果太差,冲突太多,链表太长
Arduino string to hexadecimal number for large color serial port screen.
The golang regular regexp package uses -06- other usages (special character conversion, finding the regular common prefix, switching greedy mode, querying the number of regular groups, querying the na
Business process diagram design
文献阅读---优化RNA-seq研究以研究除草剂耐药性(综述)