link.css('opacity', 1);
countup.start();
}, to.delay * 1000);
+ } else if (animation.type === 'draggable') {
+ $(link).css('pointer-events', 'auto');
+ var draggable = new Draggable(link, {
+ type: 'x',
+ onRelease: function () {
+ var d = this;
+ if (animation.drop === 'click') {
+ $('#links .link a').each(function () {
+ if (d.hitTest(this)) {
+ var e = this;
+ setTimeout(function () {
+ $(e).click();
+ }, 500);
+
+ TweenLite.to($(link), 0.5, {x: 0, y: 0});
+ return true;
+ }
+ });
+ }
+
+ }
+ });
} else {
tweenmax = false;
}