js实现炫酷闪烁相册图片放大效果代码
代码语言:html
所属分类:画廊相册
代码描述:js实现炫酷闪烁相册图片放大效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css">
<style>
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,400i,700");
*,
::before,
::after {
box-sizing: border-box;
border-style: solid;
border-width: 0;
}
html {
background: #01012a;
color: #33def4;
}
html,
body {
-ms-scroll-chaining: none;
overscroll-behavior: none;
font-family: Montserrat, sans-serif;
overflow: hidden;
}
.box {
padding: 32px;
}
h1 {
font-size: 2.4rem;
padding-bottom: 16px;
}
.loading {
z-index: 9999;
background: #01012a;
color: #33def4;
text-align: center;
position: fixed;
width: 100%;
min-height: 100vh;
min-height: calc(var(--vh, 1vh) * 100);
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
opacity: 1;
visibility: visible;
transition: opacity 0.8s 0.8s cubic-bezier(0.755, 0.05, 0.855, 0.06), visibility 0.8s 0.8s cubic-bezier(0.755, 0.05, 0.855, 0.06);
}
.loading.loaded {
opacity: 0;
visibility: hidden;
}
.loading .loading-container {
position: relative;
width: 40%;
overflow: hidden;
}
.loading .loading-container .counter {
padding: 0.8rem;
transform: traslate(0, 0);
}
.loading .loading-container .counter.loaded {
-webkit-animation: counter-animation 0.8s cubic-bezier(0.755, 0.05, 0.855, 0.06) 0.8s 1 normal forwards running;
animation: counter-animation 0.8s cubic-bezier(0.755, 0.05, 0.855, 0.06) 0.8s 1 normal forwards running;
}
.loading .loading-container .line {
position: absolute;
background: #03e2e7;
left: 0;
bottom: 0;
width: 0;
height: 2px;
}
.loading .loading-container .line.loaded {
-webkit-animation: line-animation 0.8s cubic-bezier(0.755, 0.05, 0.855, 0.06) 0s 1 normal forwards running;
animation: line-animation 0.8s cubic-bezier(0.755, 0.05, 0.855, 0.06) 0s 1 normal forwards running;
}
@-webkit-keyframes counter-animation {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(0, 10%);
}
}
@keyframes counter-animation {
0% {
transform: translate(0, 0);
}
100% {
transform: translate.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0