平滑滚动图像

时间:2018-02-13 04:36:39

标签: javascript css3

如何实现平滑滚动图像,如下所示:

http://axismundi.com/#interior-designers-nyc

2 个答案:

答案 0 :(得分:2)

这称为def outputlist(list): print("The list of the months of the year are:") for list_output in list: print(list_output,end=" ") #return list_output def main(): month = ["January", "February", "March", "April", "May", "June", "July", "August", "Setemper", "October", "November", "December"] outputlist(month) main() 效果使用图像,您可以通过设置固定的背景图像附件来实现此目的,如parallax

您可以了解如何使用这些链接实现此视差效果..

http://mrbool.com/how-to-create-parallax-effect-with-css-and-jquery/27274

http://devfloat.net/jquery-parallax-scrolling-tutorials/

https://www.w3schools.com/howto/howto_css_parallax.asp

答案 1 :(得分:0)

您应该在css中使用此代码修复您的backgruond图像。

background-repeat:no-repeat;
background-attachment:fixed;