You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe you should post this support question on stackoverflow.
setTimeout() is the oldschool JavaScript way of delaying things.
function startAnimation() {
// put your code to start the animation here
};
$('#animationElement').on('inview', function(e, visible) {
if (visible) {
window.setTimeout(1000, startAnimation); // 1000 ms = 1 s
}
});
I have animated SVG's within a panel and I was wondering if there was a way to delay the inview animation? I'm new at JS so go easy on me.
The text was updated successfully, but these errors were encountered: