Forum Replies Created
-
AuthorPosts
-
i get it with this code:
var img = new Image();
img.onload = function() {
var x = document.getElementsByTagName(“h3”);
var y = document.getElementsByTagName(“h4”);
var z = document.getElementsByClassName(“visualHack”);
for (i = 0; i < x.length; i++) {
x.style.display= “block”;
}
for (j = 0; j < y.length; j++) {
y[j].style.display= “block”;
}
for (k = 0; k < z.length; k++) {
z[k].style.display= “block”;
}
}
img.src = “https://www.kqk.ca/wp-content/uploads/parallax_accueil_fw17-18_look7-4.jpg”;i put that in the js part of the theme option to know when my image is load and i’m gonna change the property “display” of my hidden elements 🙂
var img = new Image();
img.onload = function() { alert(“Height: ” + this.height); }
img.src = “https://www.kqk.ca/wp-content/uploads/parallax_accueil_fw17-18_look7-4.jpg”;.badge{display:none;}
h4, h3{display:none;}i put that to try to just don’t display these element till this image is not loaded. It’s my only idea
.vc_custom_1504969572587Â {
background-image:Â url(https://www.kqk.ca/wp-content/uploads/parallax_accueil_fw17-18_look7-4.jpg?id=5752) !important;
background-position:Â center !important;
background-repeat:Â no-repeat !important;
background-size:Â cover !important;
}when the homapage is totally loaded…the the first slide…the one with the texte and a background
i’m talking about the form on the homepage at the last slide.
This reply has been marked as private.thanks a lot for your help…i will be ok with the rest…have a good one and really great support 🙂
I desactivated the cache on the site…can help you make it work !
Attachments:
You must be logged in to view attached files. -
AuthorPosts