Community X.

Connect with other creators, share ideas, give feedback and get the latest product updates.

Dec 21, 2020

Do all parts of Corvid work with E-X?

Hi, I have a simple formFactor property to change a video according to the device size, I tried in 2 different ways. 1. Simple hide & show

import wixWindow from 'wix-window';

$w.onReady(function () {
    if (wixWindow.formFactor === "Mobile") {
        $w("#bgVideo").hide();
        $w("#mbgVideo").show();
    }
});

2. Setting a src

$w.onReady(function () {
    if (wixWindow.formFactor === "Mobile") {
        $w("#bgVideo").src = "wix:video://v1/01426f_66679117eabe4735b6635d83e7959d29/1080p/mp4/file.mp4";
    }
});

Neither worked and I was wondering if formFactor properly works in Editor-X since it seems the CSS is set up differently. If that is the case then perhaps there's a property with viewport width I can use? Any suggestions? And if the formfactor doesn't work, I'm sure there are other divergences with Corvid and CSS - or any new Editor_X auxiliary functions, then -

Is there a resource, or a new Corvid reference guide specific to Editor-X? Thanks!

0 answers0 replies

Editor X

Design your boldest creations.