Hi guys,
I have an animation in Jquery, which I want to "recreate" in GSAP.
Jquery:
$(document).ready(function(){
$('#newsContainer').animate({
height: '+=400'
}, 2000, function() {
// Animation complete.
});
});
GSAP:
$(document).ready(function(){
var newsContainer = document.getElementById("newsContainer");
TweenLite.to( newsContainer, 2, {css:{height:"800px"}});
});
The animation works perfect in Jquery, but nothing happens using GSAP - no errors, no nothing.
Any suggestions?