diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js index 441c4e5bcc4..8af5dd6f1e4 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -5316,11 +5316,17 @@ registry.ImageTools = ImageHandlerOption.extend({ this.trigger_up('disable_loading_effect'); const document = this.$target[0].ownerDocument; + const playState = this.$target[0].style.animationPlayState; + const transition = this.$target[0].style.transition; this.$target.transfo({document}); const mousedown = mousedownEvent => { if (!$(mousedownEvent.target).closest('.transfo-container').length) { this.$target.transfo('destroy'); $(document).off('mousedown', mousedown); + // Restore animation css properties potentially affected by the + // jQuery transfo plugin. + this.$target[0].style.animationPlayState = playState; + this.$target[0].style.transition = transition; } }; $(document).on('mousedown', mousedown); diff --git a/addons/web_editor/views/snippets.xml b/addons/web_editor/views/snippets.xml index 68cccecc69f..5be36ca5454 100644 --- a/addons/web_editor/views/snippets.xml +++ b/addons/web_editor/views/snippets.xml @@ -564,7 +564,7 @@ Reset - + Reset diff --git a/addons/website/views/snippets/snippets.xml b/addons/website/views/snippets/snippets.xml index 0122351c84f..2b50ecd95e9 100644 --- a/addons/website/views/snippets/snippets.xml +++ b/addons/website/views/snippets/snippets.xml @@ -337,7 +337,9 @@