On scroll Event 

On scroll Event 

  

Hello, 

I would like to know how i can do to make appear an icon in the "head content" when i'm scrolling down my screen.

In order to hide the header i use the HideHeaderOnScroll function but i find nothing no event to know when the screen is scrolled. (the header content is not hidden).

I tried to do only with CSS style but nothing happened when i'm trying to use this kind of expression in "Style Classes" of my container : 

"...CSS Style Sheet" + If(not HideHeaderOnScroll, "", " hide")


Finally i should have the header hidden and an icon in the header content which should appear. 

Thanks in advance for your answer.

Hi Montrozier,

I'm not entirely sure what you're trying to achieve, but 1) you are talking about the HideHeaderOnScroll function while in your expression it's a variable, and 2) since it's a variable you need to set it somewhere in order for the CSS class to dynamically change.