I’d like to announce a new free plugin from AirDev called Tornis Viewport Data. This plugin allows you to track and store data related to the viewport - such as page height/width, mouse position and velocity, and scroll position and velocity. It also allows you to trigger workflow events based on changes in that data.
While it is possible to track viewport data and changes manually through JavaScript (and through some of Bubble’s out-of-the-box functionality), Tornis aims to accomplish this in a performant manner. You can learn more about the library and check out their demo here.
To use, you install the plugin and then add a “Viewport” element to your Bubble page. From there, you can reference the element to access viewport data or add workflow events that fire when the viewport changes.
I want to show my splash screen for when the page is resized. Sometimes when the pages shows awkward position of elements as they are being hidden and I hope to use your plugin to stop that.
I am also seeing this error (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. r.on.r.addListener @ x5:17
Chrome OSX
Version 75.0.3770.100 (Official Build) (64-bit)
If you could please de-bug this. It worked one time for me then would not work again on proceeding page loads.
I want to use this to hide my header when page scroll velocity < 0. This appears to be the only plugin that will allow me to do this via conditionals. The rest are workflow based and I absolutely need to make this a conditional for my use case.