# Changing BG color as scroll

**URL:** <https://forum.wixstudio.com/t/changing-bg-color-as-scroll/13625>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [January 19, 2019, 12:06am UTC](https://forum.wixstudio.com/t/changing-bg-color-as-scroll/13625 "2019-01-19T00:06:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![onehousearts](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/onehousearts/32/8353_2.png) [@onehousearts](https://forum.wixstudio.com/u/onehousearts)\
**Post date:** [January 19, 2019, 12:06am UTC](https://forum.wixstudio.com/t/changing-bg-color-as-scroll/13625/1 "2019-01-19T00:06:12Z")

</div>

Hey there! Wix newbie here. From what I understand there is no inbuilt function for onScroll events, but I can use onViewPointEnter. Would it be possible or not even worth it to try to figure out fading between different background colors as elements come into the viewport? If there is some hacky way around it (like even a way to stretch a gradient image through the entire web page so that it changes as you scroll down), can you please let me know your thoughts? Thanks!
