还是先上效果图,看看是不是大家所需要的这种效果
没什么过程直接上代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 0;
}
.box{
width: 440px;
height: 320px;
position: relative;
overflow: hidden;
display: inline-block;
}
/* 图片变化 */
.box:hover img{
transform:scale(2) rotate(45deg)
}
.box img{
transition: all 0.5s;
}
.small{
width: 400px;
height: 280px;
background-color:#00bcd438;
position: absolute;