function(now) {
logo.css('transform', 'translate(0px, ' + now + ' px)');
}
in this code how is now getting concatenated, i cant understand that part
function(now) {
logo.css('transform', 'translate(0px, ' + now + ' px)');
}
in this code how is now getting concatenated, i cant understand that part
Hi,
maybe an example will help:
function myFunc (now) {
logo.css('transform', 'translate(0px, ' + now + ' px)');
}
myFunc(20)
Will result in:
logo.css('transform', 'translate(0px, ' + 20 + ' px)');
which is the same as:
logo.css('transform', 'translate(0px, 20px)');
Make sense?
Thanks its clear now