Hi guys,
I'm a new user here and completely new to Greensock so please go easy on me
I have set up some simple code, which works...
$('BODY').on('click', '.card-arrow_right', function (event) {
event.preventDefault();
var card = $(this).closest('.card'),
panels = card.find('.panels');
TweenLite.to(panels, 0.2, {left:'-100%'});
});
Although it works and the panels div slides to the left, there is a few hundred millisecond delay before it starts moving. You click the button and it doesn't move immediately. If I try adding a class to the panels and using css transitions it is immediate and snappy. Am I doing something wrong?
Edit: I have also tested the jQuery "closest" > "find" stuff and it takes less than 2ms, so that's not where the delay is coming from.