Asked by Walter on Aug 21, 2024
Walter wants to create a CSS linear gradient using module fields, allowing control over the angle/direction.
Answered by Anton
Anton provided a comprehensive HubL macro to generate cross-browser linear-gradient CSS based on angle, colors, and position fields. Twentyninetimes suggested a simpler approach: use a choice field for direction and insert its value into the standard `linear-gradient()` function.