The Viewport Element Detector is a powerful plugin designed for use within Bubble.io, allowing users to effortlessly identify whether a specific element is currently within the viewport. This plugin offers seamless integration of viewport tracking capabilities into your Bubble app, enabling you to enhance user experiences, trigger animations, or execute actions based on element visibility.
1. Installation:
Log in to your Bubble.io account.
Navigate to the app editor dashboard.
Open the "Plugins" tab from the left sidebar.
Search for "Viewport Element Detector" in the plugins marketplace.
Install the plugin to your Bubble app.
2. Element Setup:
After installing the plugin, it becomes available as an action in your workflow.
Within the Bubble app editor, select the element you want to track within the viewport.
In the element's settings section, enable the option to "Expose an element by ID attribute."
Assign a unique ID to the element by adding the desired value to the "Element ID" field that becomes visible after enabling the attribute.
3. Workflow Integration:
To utilize the Viewport Element Detector, navigate to the desired workflow where you want to trigger an action based on element visibility.
Add an action by clicking on the "+" button within the workflow editor.
Search for "Viewport Element Detector" in the action selection menu.
4. Configuration:
Choose the "Detect Element in Viewport" action from the plugin.
In the "Element ID" field, enter the unique ID of the element you wish to track. This ID should match the one you assigned in the element's property settings.
5. Actions and Conditions:
Once the element is detected within the viewport or goes out of view, you can trigger various actions or set conditions accordingly.
For example, you can animate the element, show a popup, change data, or perform any other action that enhances the user experience.
Here is the link to the editor
https://bubble.io/page?type=page&name=viewporteditor1&id=goodspeedplugins&tab=tabs-1