svg实现视频背景蒙版滚动效果代码
代码语言:html
所属分类:背景
代码描述:svg实现视频背景蒙版滚动效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1, user-scalable=0, maximum-scale=1.0"
/>
<style>
@import url('//repo.bfw.wiki/bfwrepo/css/normalize.5.0.css') layer(normalize);
@layer normalize, base, demo, scroll, debug;
@layer scroll {
@supports (animation-timeline: scroll()) {
@property --active {
initial-value: 0;
inherits: true;
syntax: '<number>';
}
p span {
-webkit-animation: activate both ease-in-out;
animation: activate both ease-in-out;
animation-timeline: view();
opacity: 0;
}
@-webkit-keyframes activate {
50% {
opacity: 1;
}
}
@keyframes activate {
50% {
opacity: 1;
}
}
:root {
--scroll-ease: linear(
-0 0%,
0.0048 9.8%,
0.0192 19.5%,
0.043 29.02%,
0.0761 38.26%,
0.1181 47.13%,
0.16.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0