Skip to content

Instantly share code, notes, and snippets.

@RyanRoberts
Created January 27, 2014 13:02
Show Gist options
  • Select an option

  • Save RyanRoberts/8648200 to your computer and use it in GitHub Desktop.

Select an option

Save RyanRoberts/8648200 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<p class="gradient-test">Donec ullamcorper nulla non metus auctor frinitemlla. Sed posuere consect etur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vestibulum id ligula porta felis euismod semper.</p>
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
@import "compass"
.gradient-test
font-size: 150%
+background-image(linear-gradient(#ff0052,#8e2b88))
+background-clip(text)
+experimental(text-fill-color, transparent)
.gradient-test {
font-size: 150%;
background-image: -moz-linear-gradient(#ff0052, #8e2b88);
background-image: -o-linear-gradient(#ff0052, #8e2b88);
background-image: -webkit-linear-gradient(#ff0052, #8e2b88);
background-image: linear-gradient(#ff0052, #8e2b88);
-moz-background-clip: text;
-o-background-clip: text;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
-moz-text-fill-color: transparent;
-ms-text-fill-color: transparent;
-o-text-fill-color: transparent;
text-fill-color: transparent;
}
<p class="gradient-test">Donec ullamcorper nulla non metus auctor frinitemlla. Sed posuere consect etur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vestibulum id ligula porta felis euismod semper.</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment