code: function afterTransition(){
  
            ////// transitions in the next step
              if (scope.joyride.transitionStep == 'next') {
                scope.joyride.current++;
              }
              else{
                scope.joyride.current--;
              }
  
              /********************************************
              if step contains a beforeStep function
              execute it first before transitioning in
              else just transition in
              ********************************************/
                if (typeof scope.joyride.config.steps[scope.joyride.current].beforeStep === "function") {
                  scope.joyride.config.steps[scope.joyride.current].beforeStep(scope.joyride.resumeJoyride);
                }
  
                else{
                  scope.joyride.resumeJoyride();
                }
  
          }
docs: //// Set position and current step after joyride transitions out