3- Compared to Elementor popup, there are currently restrictions on how popups can be displayed. For example :
A : we cannot use animations like flash when the popup is displayed. Rather, we can only use animations such as fade in.
B : The popup when closing can have animation only if we apply the animation to the “close” button. This is a major limitation.
To fix this, I suggest adding the backdop as an editable div for the popup, just like the offcanvas element. So, in this case, this limitation is removed and even if users click on the backdop, the popup will be accompanied by animation when closed.
The backdrop doesn’t show up as the popup is not generated yet (empty content). This is expected behaviour and not a bug.
Click trigger + Start animation with any xxxOut animation will automatically close the popup after the animation end. I am not able to replicate the issue locally. Kindly provide a temp admin access for me to check (help@bricksbuilder.io + this thread URL as reference)
A - You can use any animation to apply on a popup when opening. Just need to define the animation in Settings > Template settings > Popup > Interactions.
Trigger: Show Popup
Action: Start animation
Animation: flash
By doing this, this popup will always animate flash animation when open.
(Please do not set animation on the button that trigger the opening of the popup if you plan to do so)
B - Having an animation before popup close, the current possible way is set the xxxOut animatuion on the button. If you would like to have non xxxOut animation, you must follow by another interaction to close the popup when the previous animation end by using “Animation end” trigger + “Hide element” action. By doing this, the popup then only will know when should it close.
Hi @itchycode, Thanks for the excellent and detailed explanation.
Now, with the help of your explanation, running the animation when displaying the popup works without problems.
But as you mentioned, running an animation for when the popup is closing is not easy. When I first checked the popup in Bricks, I expected the Trigger Hide popup to be able to run the animation when the popup is closed. But it is not. I hope in future versions, you will add a simpler solution to run the animation for when the popup is closing.