js+css实现滚动图片模糊至清晰filter效果代码
代码语言:html
所属分类:加载滚动
代码描述:js+css实现滚动图片模糊至清晰filter效果代码
代码标签: js css 滚动 图片 模糊 清晰 filter
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<style>
body {
background: #212121;
}
.image-gallery {
padding-top: 10svh;
}
.item {
display: grid;
place-items: center;
margin-bottom: 10svh;
--filter: drop-shadow(0 0 10px #000);
}
@supports (animation-timeline: view()) {
.item {
view-timeline-name: --img-timeline;
-webkit-animation: move-and-fade both;
animation: move-and-fade both;
animation-timeline: view(y);
animation-range: cover 0% cover 120%;
}
}
.item > .........完整代码请登录后点击上方下载按钮下载查看
















网友评论0