code: function placeVertically(v, h) {
                          var top;
                          var left;
                          var translateX;
                          var translateY;
                          var tipY;
  
                          if (v == 'top') {
                              top = dims.target.margins.offset.top;
                              tipY = 'bottom';
                              translateY = '-100%';
                          } else {
                              top = dims.target.margins.offset.toBottom;
                              tipY = 'top';
                              translateY = '0';
                          }
  
                          if (h == 'right') {
                              left = dims.target.offset.toRight;
                              translateX = '-100%';
                          } else if (h == 'center') {
                              left = dims.target.offset.left + dims.target.width / 2;
                              translateX = '-50%';
                          } else {
                              left = dims.target.offset.left;
                              translateX = '0';
                          }
  
                          els.wrap.css({
                              left: left + 'px',
                              top: top + 'px',
                              transform: 'translate(' + translateX + ',' + translateY + ')'
                          });
  
                          els.tip.attr('class', 'vertical ' + tipY + ' ' + h);
                      }
docs: Placement functions