diff --git a/addons/website/static/src/js/editor/snippets.options.js b/addons/website/static/src/js/editor/snippets.options.js index 305d7a80220..bbed1a84b91 100644 --- a/addons/website/static/src/js/editor/snippets.options.js +++ b/addons/website/static/src/js/editor/snippets.options.js @@ -2856,6 +2856,12 @@ options.registry.WebsiteAnimate = options.Class.extend({ this.isAnimatedText = this.$target.hasClass('o_animated_text'); this.$optionsSection = this.$overlay.data('$optionsSection'); }, + /** + * @override + */ + async onBuilt() { + this.$target[0].classList.toggle('o_animate_preview', this.$target[0].classList.contains('o_animate')); + }, /** * @override */