Add fade-in animation

[MAILPOET-3088]
This commit is contained in:
Pavel Dohnal
2020-09-10 09:14:31 +02:00
committed by Veljko V
parent 23e732bde4
commit 13804c7de7
2 changed files with 29 additions and 0 deletions

View File

@@ -88,6 +88,7 @@ jQuery(($) => {
const animation = form.data('animation');
if (animation !== '') {
formDiv.addClass(`mailpoet_form_animation_${animation}`);
formDiv.prev('.mailpoet_form_popup_overlay').addClass(`mailpoet_form_overlay_animation_${animation}`);
}
const background = form.data('background-color');
formDiv.css('background-color', background || 'white');