如何在页面向下或向上滚动时使图像移动 [英] how to make images move as the page is scrolled down or up

查看:87
本文介绍了如何在页面向下或向上滚动时使图像移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道当页面上下滚动时(不是在页面加载或稳定时),如何制作图像或div移动/动画。请访问网站http://swedhasingh.com/并上下滚动页面。

这是出于学术兴趣。我很想知道代码/技术。

感谢和问候

I would like to know how to make images or div move/ animate as the page is scrolled up and down (not when page is loaded or when it is steady). Please see the site http://swedhasingh.com/ and scroll the page up and down.
It is for academic interest. I would love to know the code/ technique.
Thanks and regards

推荐答案

你看到的是视差滚动或视差设计。做一些谷歌,你会发现其他网站,教程和图书馆来帮助你...
What are you see is called parallax scrolling or parallax design. Do some Googleing, you will find other sites, tutorials and libraries to aid you...


这篇关于如何在页面向下或向上滚动时使图像移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆