Hi,
I would like to replace jquery slideToggle with Tweenmax
Jquery:
$('.acordParent').click(function (e) {
$(this).next('ul').slideToggle()
e.preventDefault()
});
Tweenmax:
$('.acordParent').click(function (e) {
if (isOpen==false) {
TweenMax.to($(this).next('ul'), 1, {height:auto})
isOpen=true
}else{
TweenMax.to($(this).next('ul'), 1, {height:0});
isOpen=false
}
e.preventDefault(