javascript - Slow down the text fading on scroll down in squarespace gallery page
问题描述
I have a website in squarespace. There is a gallery page which has some text and when scrolled down it shows some pictures and text fades away, all i want is to slow the fading transition effect of the page, anyone can help? i tried to add the following script in the header code injection but it didn't work
<script src="https://unpkg.com/scrollreveal/dist/scrollreveal.min.js"></script>
<script type="text/javascript">
window.sr = ScrollReveal();
sr.reveal('#collection-5aa2fea971c10b74be7193dd', {duration: 1500});
</script>
解决方案
尝试这个
sr.reveal('#collection-5aa2fea971c10b74be7193dd', {delay: 1500});
推荐阅读
- excel - 通过 VBA 使用 taskkill 杀死 Excel 进程
- java - 我们通过限制函数跳过的所有 var 值的总和需要显示为新行 dummy sum user{name="Dummy" var="13.88" }
- c# - 在 C# 中创建方法
- python - 神经风格转移:预处理图像
- django - Nginx、Django、Gunicorn,在没有配置文件的情况下工作?
- r - 如何将插入符号/时间片用于面板数据?
- linux - 在 mongodb 更新之后,mongodb 不会在 centos 7 上启动
- c++ - WCHAR 在 linux 中无法正常运行
- python - 即使在递归调用中,“非本地”变量是否总是从外部循环继承?
- mysql - 使用单个语句将员工表中的部门 ID 从 1 更新为 2 和从 2 更新为 1?