The Dynaview Plugin makes it possible to build user interfaces that dynamically respond to changes in the browser viewport via scrolling or zooming:
See the demo at https://tiddlywiki.com/plugins/tiddlywiki/dynaview