How the parallax ads works

I found that some websites have ads in parallax view and most surprising this is that they are adsenses ads. How this thing works can anyone help me in understanding this?

1 Like

maybe they use postion:fixed; css

any sample linkā€¦ you could give? @AbhishekVerma