public/libraries.js
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});
          }
        }
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});
          }
        }
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 } ) ; } }
Transitions the caption depending on alignment
Transitions the caption depending on alignment