css实现鼠标悬停打印照片动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现鼠标悬停打印照片动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
padding: 0;
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: #dfe4ea;
overflow: hidden;
}
.polaroid {
width: 100px;
height: 100px;
transform-origin: bottom;
position: relative;
}
.polaroid .pola--body {
position: absolute;
width: 100%;
height: 85%;
background: #f1f2f6;
border-radius: 5px;
}
.polaroid .pola--body .lines {
position: absolute;
top: 10%;
left: 50%;
transform: translate(-50%);
width: 15%;
height: 60%;
background: linear-gradient(to right, #ff6b6b, #ff9f43, #feca57, #1dd1a1, #54a0ff, #222f3e);
}
.polaroid .pola--body__btm {
position: absolute;
left: 50%;
bottom: 0%;
transform: translate(-50%);
width: 100%;
height: 30%;
background: #222f3e;
border-radius: 0 0 5px 5px;
}
.polaroid .pola--body__btm__box {
position: absolute;
left: 50%;
bottom: 30%;
transform: translate(-50%);
width: 90%;
height: 30%;.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0