Taking its name from the forest watchtowers of Latvia, Tornis is a minimal JavaScript library that watches the state of your browser’s viewport, allowing you to respond whenever something changes.Tornis currently tracks state for:
- Mouse position
- Mouse cursor velocity
- Viewport size
- Scroll position
- Scroll velocity