Sass zip() Function

Last Updated:

Sass zip() Function

The zip() function combines every list in a list into a single list of sub-lists.

Example

SASS TO CSS CONVERTER
.foo{ margin: zip(5 10 15, px em in); }

Syntax

zip($list1, $list2, ..., $listN)

Parameter Value

ValueTypeExplanation
$list1, $list2, ..., $listN Required Specifies multiple list

Return Value

ValueExplanation
list Returns a combined list, whose values are always comma-separated and the sub-lists are always space-separated.

Share this Page

Meet the Author