Method: Sass::Script::Functions#transparentize
- Defined in:
- lib/sass/script/functions.rb
#transparentize($color, $amount) ⇒ Color Also known as: fade_out
Makes a color more transparent. Takes a color and a number between 0 and 1, and returns a color with the opacity decreased by that amount.
670 671 672 |
# File 'lib/sass/script/functions.rb', line 670
def transparentize(color, amount)
_adjust(color, amount, :alpha, 0..1, :-)
end
|