Method: Sass::Script::Functions#opacify
- Defined in:
- lib/sass/script/functions.rb
#opacify($color, $amount) ⇒ Sass::Script::Value::Color Also known as: fade_in
Makes a color more opaque. Takes a color and a number between 0 and 1, and returns a color with the opacity increased by that amount.
1013 1014 1015 |
# File 'lib/sass/script/functions.rb', line 1013
def opacify(color, amount)
_adjust(color, amount, :alpha, 0..1, :+)
end
|