code: function captionTransition(caption, duration) {
            if (caption.hasClass("center-align")) {
              caption.velocity({opacity: 0, translateY: -100}, {duration: duration, queue: false});
            }
            else if (caption.hasClass("right-align")) {
              caption.velocity({opacity: 0, translateX: 100}, {duration: duration, queue: false});
            }
            else if (caption.hasClass("left-align")) {
              caption.velocity({opacity: 0, translateX: -100}, {duration: duration, queue: false});
            }
          }
docs: Transitions the caption depending on alignment