Sass call() Function

Last Updated:

Sass call() Function

The call() function invokes $function with $args and returns the result.

Note: The $function should be a function returned by get-function().

Example

SASS TO CSS CONVERTER
@function foo($x) { @return $x; } p{ content: call( get-function('foo'), 'It works :)' ); } div { content: call( get-function(foo), '(even without quotes)' ); }

Syntax

call($function, $args...)

Parameter Value

ValueTypeExplanation
$function Required Specifies a function to be used.
$args... Required Specifies the arguments to be passed.

Return Value

ValueExplanation
value Returns the resultant value.

Share this Page

Meet the Author