Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
use jquery onload
$(function(){
// тут код анимации и прочего
});
I would poll the offsetWidth of the div at a small interval, as soon as it becomes visible (display: block) offsetWidth stops returning 0, then we launch the callback.
A correctly asked question contains three-quarters of the answer.
Try asking the question again.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question