v2.2
MENU ANIMATIONS
UI SURECART
BUTTONS
Modal Popup
Smooth animated modal with customizable backdrop and behavior
- Build your modal: Create the modal content in Bricks Builder (any container/section)
- Add modal attribute: Add
data-modal-popup="modal-id"
to your modal container (use a unique ID) - Create trigger: Add a button/link with attribute
data-modal-trigger="modal-id"
(same ID) - Configure settings: Adjust animation, backdrop, and behavior options
- Copy JS: Click Copy JS to copy the JavaScript code
- Add Code element: In Bricks Builder, add a Code element to your page
- Paste JavaScript: Paste the code and ensure it runs on page load
- Done: Your modal will open with smooth animation when clicking the trigger