Feature Request: Add CSS to prevent FOUSC when VC Rows are set to Stretch

When a VC row is set to stretch, the stretching occurs via Javascript, after page load.
This is particularly apparent when there's a row with a background colour or image.

Can an option be added to the theme to handle this with these two simple lines of CSS?

.vc_row[data-vc-full-width="true"]{ opacity: 0; transition: opacity 0.1s;}
.js_active .vc_row[data-vc-full-width="true"]{ opacity: 1; }

I am aware this means that browsers with JS disabled will never get to see these stretched rows, so it would need to be an "option" in the theme to turn off. The visual benefit for the 99%+ with JS enabled would outweigh the Non-JS user issue though.

Comments

  • Hello,
    We'll discuss that, but I think it will not be possible at all.
    This plugin is coming from other author, so we do not have permissions to change a lot of things in the plugins files.
    For now, all I can suggest you to insert this code into the Theme Options > Custom CSS & JS > CSS
    Thanks
  • Thanks Pablo, the plugin would not be required to be altered; just your use of it within a theme (BeTheme specifically).

    I have added it in to the custom CSS, however I'd expect it to be useful to many theme users too.
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.