> For the complete documentation index, see [llms.txt](https://andrearufo.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://andrearufo.gitbook.io/notes/design-and-css/calcolare-i-pixel-scrollati.md).

# Calcolare i pixel scrollati

ScollAmounth

In jQuery è semplice:

```javascript
var scroll = 0;

$(window).scroll(function (event) {
    scroll = $(window).scrollTop();
    
    // do something
}
```
