hi GSAP Guys,
i'm having a strange problem, and i don't know why it happens.
my code is pretty straightforward
jQuery("#rakete, .rocketbutton a").click(function(e) {
e.preventDefault();
leftValue = '50%';
if ($window.width() < 600) {
var leftValue = '0';
}
TweenLite.to($rakete, 1, { y: -$window.height()-100 });
TweenLite.to($slidein, 1, { x: "-100%", ease: Bounce.easeOut});
$slidein.addClass('slipped-out');
})
and i receive
TweenLite.min.js:12 Uncaught TypeError: Cannot assign to read only property 'y' of object '#<HTMLImageElement>'
at Object.i.render (TweenLite.min.js:12)
at Object.i.render (TweenLite.min.js:12)
at Object.E._updateRoot.H.render (TweenLite.min.js:12)
at Object.i.dispatchEvent (TweenLite.min.js:12)
at s (TweenLite.min.js:12)
i somehow cannot tween along x and y axis.
They are readonly for the discovered HTMLImageElement
see https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement
I guess there is an easy solution, but i don't see it
Cheers
Adrian