JavaScript library that watches the state of your browser’s viewport
Introducing Tornis. 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. Think of Tornis as a store for your viewport. Tornis tracks state for: Mouse position 642, 434 Mouse cursor velocity 4, -10 Viewport size 1536, 686 Scroll … Read more