} else if (animation.type === 'draggable') {
$(link).css('pointer-events', 'auto');
var draggable = new Draggable(link, {
+ inertia: true,
type: 'x', onRelease: function () {
var d = this;
- if (animation.drop === 'click') {
+ if (animation.drop === 'clickhide') {
$('#links .link a').each(function () {
if (d.hitTest(this)) {
var e = this;
$(e).click();
}, 500);
- gsap.to($(link), {duration: 0.5, x: 0, y: 0});
+ gsap.to($(link), {duration: 0.5, autoAlpha: 0});
return true;
}
});
}
-
}
});
} else {