var helper, kitti, amount;
if (i == 0) {
helper = "#k" + ids+ " .contain";
}
else {
helper = "#k" + ids + " .d" + i;
}
kitti = "$(" + helper + ").get(0)";
amount = (MouseX-kitti.width / 2) * layer[i - 1] * 2;
kitti.style.transform = "rotateY(" + amount * 50 + "deg)";
kitti.style.left = amount + "px";
This part of my code doesn't seem to work but. I bet I did something wrong selecting it? I've read a couple of articles and I came to this conclusion. But it does not work, can you explain me why? How can I select classes with jQuery and after that continue with plain Javascript?
kitti=$(helper).get(0)