jquery+svg实现mac电脑app更新窗口动画效果代码
代码语言:html
所属分类:其他
代码描述:jquery+svg实现mac电脑app更新窗口动画效果代码
代码标签: jquery svg mac 电脑 app 更新 窗口 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: #151519;
font-family: "Inter", sans-serif;
}
* {
box-sizing: border-box;
}
svg{
padding: 0;
margin: 0;
transform: translate3d(0,0,0);
}
.app {
padding: 18px;
background: #53565B;
border-radius: 10px;
min-width: 201px;
height: 101px;
}
.actions {
display: flex;
gap: 8px;
}
.actions .default {
width: 12px;
height: 12px;
background: gray;
border-radius: 50%;
position: relative;
}
.actions .default svg {
position: absolute;
width: 12px;
height: 12px;
top: 0;
left: 0;
opacity: 0;
}
.actions:hover > .default svg {
opacity: 1;
}
.actions:hover .close {
background: #EC6A5E;
}
.actions:hover .min {
background: #F3BE4F;
}
.actions:hover .max {
background: #60C555;
}
.update {
background: #68A7FF;
width: 12px;
height: 12px;
border-radius: 50%;
position: relative;
}
.update svg{
position: absolute;
width: 12px;
heigh.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0