function setStyles(ele, opacity, x, boxShadowOpacity) {
      var css = {};
      css[ionic.CSS.TRANSITION_DURATION] = d.shouldAnimate ? '' : 0;
      css.opacity = opacity;
      if (boxShadowOpacity > -1) {
        css.boxShadow = '0 0 10px rgba(0,0,0,' + (d.shouldAnimate ? boxShadowOpacity * 0.45 : 0.3) + ')';
      }
      css[ionic.CSS.TRANSFORM] = 'translate3d(' + x + '%,0,0)';
      ionic.DomUtil.cachedStyles(ele, css);
    }
@ngdoc method
@name $ionicConfigProvider#navBar.positionSecondaryButtons
@description Which side of the navBar to align the secondary navBar buttons. Default `right`.

@param {string} value side of the navBar to align the secondary navBar buttons.

* `platform`: Dynamically choose the correct title style depending on the platform
the app is running from. If the platform is `ios`, it will default to `right`.
If the platform is `android`, it will default to `right`. If the platform is not
`ios` or `android`, it will default to `right`.

* `left`: Left align the secondary navBar buttons in the navBar
* `right`: Right align the secondary navBar buttons in the navBar.

@returns {string} value