By using Elementorforum.com’s services you agree to our Cookies Use and Data Transfer outside the EU.
We and our partners operate globally and use cookies, including for analytics, personalisation, ads and Newsletters.

  • Join the Best Unofficial Elementor Support forum

    Provide or get advice on everything Elementor and Wordpress, ask questions, gain confirmation or just become apart of a friendly, like minded community who love Wordpress and Elementor


    Join us!
elementor official

Customize Vimeo Parameter in Sections's video background

L

llengcai

New Member
Currently in the source code of elementor.3.1.1\elementor\assets\js\frontend.js, the transparent parameter of vimeo background video is hardcoded to false

}, {
key: "prepareVimeoVideo",
value: function prepareVimeoVideo(Vimeo, videoId) {
var _this2 = this;
var elementSettings = this.getElementSettings(),
startTime = elementSettings.background_video_start ? elementSettings.background_video_start : 0,
videoSize = this.elements.$backgroundVideoContainer.outerWidth(),
vimeoOptions = {
id: videoId,
width: videoSize.width,
autoplay: true,
loop: !elementSettings.background_play_once,
transparent: false,
background: true,
muted: true
};
this.player = new Vimeo.Player(this.elements.$backgroundVideoContainer, vimeoOptions); // Handle user-defined start/end times
this.handleVimeoStartEndTimes(elementSettings);
this.player.ready().then(function () {
jQuery(_this2.player.element).addClass('elementor-background-video-embed');
_this2.changeVideoSize();
});
}
}, {

Is there JS Hooks method to customize and set this transparent value to true?
 
elementor official

Latest posts

Latest Products

Other Elementor Resources

elementor official
elementor official
Top