Learn how to build a linear-gradient mixin in Sass that provides a fallback color, supports the old WebKit syntax, and allows for a flexible number of color stops. Also, find answers to frequently asked questions about building linear gradient mixins in Sass.
Table of contents
Building the mixinTesting if a value is a directionConverting angle to legacy syntaxUsing itFinal thoughtsFrequently Asked Questions on Building Linear Gradient Mixin with SASSSort: