• Join the Best Wordpress and 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!

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?
 

Latest Resources

Other Elementor Resources

elementor official

Still stuck? Ask the forum

Post your question with a screenshot and a link if you can, and a member will usually reply within a day. Free to join, no sales pitch.

Create a free account
Top