Smooth changing background-color of body while scrolling in Fullpage.js

与世无争的帅哥 提交于 2019-12-08 13:13:00

问题


I use fullpage.js and I want to change background-color smoothly of body while scrolling. I saw this effect here. This site also use Fullpage.js and I want to add this effect to my site. I create a jsFiddle with fullpage example here. Site with smooth color uses mt-data-slide-bg-color="#f4efec" and some javascript code to fullpage function. This function locates here (link in comments). So but if I add this code to my example it doesn't work.

Please help me.


回答1:


You can animate colours using jquery UI.

Then, change the body color and leave sections and slides without any background color or image.



来源:https://stackoverflow.com/questions/37378872/smooth-changing-background-color-of-body-while-scrolling-in-fullpage-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!