splitting+svg实现炫酷的确认框动画效果代码
代码语言:html
所属分类:弹出层
代码描述:splitting+svg实现炫酷的确认框动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Hubballi&display=swap");
body,
html {
height: 100%;
display: grid;
--db: #0a1347;
--bg: #f5e8df;
--r: #e1504a;
background: var(--bg);
--expo: cubic-bezier(1, 0, 0, 1);
--elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
font-family: "Hubballi";
font-weight: 900;
}
#container {
margin: auto;
text-align: center;
transform: translateY(-5vw);
}
p {
text-align: center;
font-size: 6vw;
text-transform: uppercase;
color: var(--db);
margin: 0 0 5vw;
text-transform: uppercase;
display: inline-block;
position: relative;
z-index: 0;
pointer-events: none;
}
p:before {
content: "";
position: absolute;
width: 90vw;
height: 22.5vw;
top: 3.5vw;
box-shadow: 0 0 0 0.5vw var(--db), 0 2.5vw 0 -0.5vw var(--db);
left: calc(50% - 45vw);
z-index: -2;
}
p:after {
content: "";
position: absolute;
width: 125%;
height: 125%;
background: var(--bg);
left: -12.5%;
top: -12.5%;
z-index: -1;
}
body.btn0 .buttons .btnwrap:first-of-type,
body.btn0 .buttons:hover .btnwrap:first-of-type {
width: 8.5vw;
transform: translateX(calc(40vw - 4.25vw));
z-index: 9;
}
body.btn0 .buttons .btnwrap:first-of-type:before,
body.btn0 .buttons:hover .btnwrap:first-of-type:before {
transform: translate(-50%, -50%) translateZ(0px) scale(1);
}
body.btn0 .buttons .btnwrap:first-of-type > div:before,
body.btn0 .buttons:hover .btnwrap:first-of-type > div:before {
transform: translateY(100%);
}
body.btn0 .buttons .btnwrap:first-of-type > div:after,
body.btn0 .buttons:hover .btnwrap:first-of-type > .........完整代码请登录后点击上方下载按钮下载查看
网友评论0