炫酷分页动画效果
代码语言:html
所属分类:表单美化
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { align-items: center; background-color: #3a0088; display: flex; flex-direction: column; justify-content: center; height: 100vh; margin: 0; overflow: hidden; } .container { display: flex; justify-content: center; margin-top: 100px; position: relative; width: 260px; } .button { align-items: center; cursor: pointer; display: flex; justify-content: center; height: 40px; opacity: 0.8; width: 40px; } .button:first-child { margin-right: 20px; } .button:hover { opacity: 1; } .button:active { transform: scale(0.9); } .dot { fill: #fff; opacity: 0.5; } .pagination { position: relative; } .path { stroke: #fff; stroke-dasharray: 0 100; stroke-dashoffset: 2px; } .path1 { stroke-dashoffset: -1px; } .step0-left-initial .path1 { stroke-dasharray: 94 100; stroke-dashoffset: -94px; } .step0-left .path1 { transition: stroke-dasharray 300ms 300ms ease-in-out, stroke-dashoffset 300ms ease-in-out; stroke-dasharray: 0 100; stroke-dashoffset: -1px; } .step1 .path1 { transition: stroke-dasharray 300ms ease-in-out, stroke-dashoffset 300ms 300ms ease-in-out; stroke-dasharray: 94 100; stroke-dashoffset: -94px; } .step1-left .path1 { stroke-dasharray: 94 100; stroke-dashoffset: -96px; } .step1-left-initial .path2 { stroke-dasharray: 94 100; stroke-dashoffset: -94px; } .step1-left .path2 { transition: stroke-dasharray 300ms 300ms ease-in-out, stroke-dashoffset 300ms ease-in-out; stroke-dasharray: 0 100; stroke-dashoffset: -1px; } .step2 .path1 { stroke-dashoffset: 2px; } .step2-initial .path2 { stroke-dashoffset: -2px; } .step2 .path2 { transition: stroke-dasharray 300ms ease-in-out, stroke-dashoffset 300ms 300ms ease-in-out; stroke-dasharray: 94 100; stroke-dashoffset: -94px; } .step2-left .path1 { stroke-dasharray: 94 100; stroke-dashoffset: -96px; } .step2-left .path2 { stroke-dasharray: 94 100; stroke-dashoffset: -96px; } .step2-left-initial .path3 { stroke-dasharray: 94 100; stroke-dashoffset: -94px; } .step2-left .path3 { transition: stroke-dasharray 300ms 300ms ease-in-out, stroke-dashoffset 300ms ease-in-out; stroke-dasharray: 0 100; stroke-dashoffset: -1px; } .step3 .path1 { stroke-dashoffset: 2px; } .step3 .path2 { stroke-dashoffset: 2px; } .step3-initial .path3 { stroke-dashoffset: -2px; } .step3 .path3 { transition: stroke-dasharray 300ms ease-in-out, stroke-dashoffset 300ms 300ms ease-in-out; stroke-dasharray: 94 100; stroke-dashoffset: -94px; } </style> </head> <body translate="no"> <div class="backgrounds"> <div class="background background1"></div> <div class="background background2">&l.........完整代码请登录后点击上方下载按钮下载查看
网友评论0