You are here

public static function SassScriptFunctions::fade_in in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/script/SassScriptFunctions.php \SassScriptFunctions::fade_in()

* Makes a colour more opaque. * Alias for {@link opacify}. *

Parameters

SassColour The colour to opacify: * @param SassNumber The amount to opacify the colour by * @param SassBoolean Whether the amount is a proportion of the current value * (true) or the total range (false). * @return new SassColour The opacified colour * @throws SassScriptFunctionException If $colour is not a colour or * $amount is not a number * @see opacify

File

phamlp/sass/script/SassScriptFunctions.php, line 400

Class

SassScriptFunctions
SassScript functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.script

Code

public static function fade_in($colour, $amount, $ofCurrent = false) {
  return self::opacify($colour, $amount, $ofCurrent);
}