diff --git a/addons/website/static/src/js/website.snippets.animation.js b/addons/website/static/src/js/website.snippets.animation.js index ed4b810179c..0a1cd2e2923 100644 --- a/addons/website/static/src/js/website.snippets.animation.js +++ b/addons/website/static/src/js/website.snippets.animation.js @@ -328,7 +328,9 @@ animation.registry.parallax = animation.Class.extend({ if (!this.$bg || !this.$bg.length) { this.$bg = this.$("> .s_parallax_bg"); if (!this.$bg.length) { - this.$bg = $("", {"class": "s_parallax_bg"}).prependTo(this.$target); + this.$bg = $('', { + class: 's_parallax_bg' + (this.$target.hasClass('oe_custom_bg') ? ' oe_custom_bg' : ''), + }).prependTo(this.$target); } } var urlTarget = this.$target.css("background-image"); diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index 567fc079836..1e62ed557f7 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -342,7 +342,6 @@ options.registry.parallax = options.Class.extend({ _refresh: function () { _.defer((function () { this.$target.data("snippet-view")._rebuild(); - this._update_target_to_bg(); }).bind(this)); }, _toggle_refresh_callback: function (on) { diff --git a/addons/website/static/src/less/website.snippets.less b/addons/website/static/src/less/website.snippets.less index 0214c264cd3..94289af4f24 100644 --- a/addons/website/static/src/less/website.snippets.less +++ b/addons/website/static/src/less/website.snippets.less @@ -409,7 +409,6 @@ div.carousel { background-size: cover; background-attachment: scroll; pointer-events: none; - z-index: -1; } &.s_parallax_is_fixed > .s_parallax_bg { background-attachment: fixed; diff --git a/addons/website/views/snippets.xml b/addons/website/views/snippets.xml index a1cbb1b4578..e230762c9ef 100644 --- a/addons/website/views/snippets.xml +++ b/addons/website/views/snippets.xml @@ -528,7 +528,7 @@