maybe it stupid question.
example`
nActive.find(".left").stop(true, true).animate({
top: -windowH
}, 1000).promise().done(function() {
nestedparallax.eq(np).addClass("n-active");
nestedparallax.eq(np).removeClass("n-showD");
nestedparallax.eq(current).removeClass("n-active");
setTimeout(function() {
flag = false;
}, 0);
});
I have animation like this`
how can i change "top" vith variable
for example var position = top it will write in animation top and if position = left it will take left on animation function.
Thank you.