Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. // Return a text color as a gradient from X to Y
  2. //
  3. // 1. Call mixin
  4. // 2. Pass in Direction, first color, first %, second color, second %
  5.  
  6. @mixin text-gradient($direction, $start-color, $start-amount, $end-color, $end-amount) {
  7.  
  8. background: linear-gradient(to $direction, $start-color, $start-amount, $end-color, $end-amount);
  9. -webkit-background-clip: text;
  10. -webkit-text-fill-color: transparent;
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement