Info Autoload
Automatically displays the Info component through the page-load interaction until the visitor dismisses it.
When the visitor clicks the exit button, the code saves the dismissed state in the browser. On future page loads, it hides the component and removes the autoload target attribute before the page-load interaction can run.
Component Attribute
Add the following attribute to the complete Info component: b-modal-target = autoload-info or b-popover-target = autoload-info
This identifies the component that should load automatically when no saved dismissed state exists.
Dismiss Button Attribute
Add the following attribute to the exit button inside the component: b-autoload-info = dismiss
When clicked, this button saves the dismissed state and prevents the component from loading again.
Interactions
The entrance and exit animations are controlled in the Interactions panel.
The page-load interaction should target b-modal-target = autoload-info and b-popover-target = autoload-info.
The exit button can also have a click interaction that visually closes the component. The code allows time for this animation to complete before hiding the component.