StyleSet property ERROR: Cannot set property 'webkitTransition' of undefined-Collection of common programming errors
I am attempting to use the style.setProperty to create a sliding effect in Javascript.
Here is my code:
imageArray = [
'',
'',
'',
];
var slideWidth = 300;
var slideHeight = 420;
var currentTranslation = -slideWidth;
function init() {
imageArray.style.webkitTransition = '-webkit-transform 1200ms';
getArray();
}
function getArray() {
for (var i = 0; i < imageArray.length; i++) {
$('.inner-image').append(imageArray);
/*not sure if this is relevant
imageArray.src = ary[i].media.m;*/
}
}
I’m new to programming so please forgive syntax errors or inconsistencies in logic. Thanks for your help.
Originally posted 2013-11-09 22:47:40.