css实现立体磨砂透明文件夹效果代码
代码语言:html
所属分类:布局界面
代码描述:css实现立体磨砂透明文件夹效果代码,当悬浮时,文件由抽出动画。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@charset "UTF-8";
:root {
--color-primary: #0e91eb;
--color-secondary: #0a78eb;
--color-tertiary: #deee75;
--color-quaternary: #9375ee;
--color-surface: #f5f5f5;
}
.folder {
border-top: 0.4vmin solid rgba(255, 255, 255, 0.5);
width: 50vmin;
aspect-ratio: 1;
border-radius: 12vmin;
position: relative;
overflow: hidden;
background: var(--color-secondary);
box-shadow: -1px 2px 0 2px color-mix(in srgb, var(--color-secondary), rgba(0, 0, 0, 0.2) 65%), -1px 2px 0 2px color-mix(in srgb, var(--color-secondary), rgba(0, 0, 0, 0.2) 65%), 0 3vmin 4vmin color-mix(in srgb, var(--color-secondary), rgba(0, 0, 0, 0.04) 80%);
}
.folder:after {
border-radius: 1.5vmin;
padding: 0 0.5vmin;
line-height: 6vmin;
content: "✿";
-webkit-backdrop-filter: blur(0.2rem);
backdrop-filter: blur(0.2rem);
background-color: rgba(0, 0, 0, 0.14);
z-index: 1111;
position: absolute;
left: 6vmin;
bottom: 6vmin;
font-size: 6vmin;
}
@media (hover) {
.folder {
cursor: pointer;
}
.folder:hover .doc {
top: 7vmin;
}
.folder:hover .doc:before {
transform: translateY(-1vmin) translateX(0.5vmin) rotate(15deg);
}
.folder:hover .doc:a.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0