code: function calcOpacity(opacity) {
  	if (isPercentage(opacity)) {
  		opacity = opacity.replace('%', '') / 100;
  	} else if (opacity > 1) {
  		opacity = opacity / 100;
  	}
  
  	return opacity;
  }
docs: Calculate opacity
  
  @param  {string|int} opacity
  @return {number}