Skip to content

Instantly share code, notes, and snippets.

@Erreur32
Forked from anonymous/index.markdown
Created October 19, 2012 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Erreur32/3919283 to your computer and use it in GitHub Desktop.
Save Erreur32/3919283 to your computer and use it in GitHub Desktop.

#3D Text in Sass

Inspired by @mdo

@import "compass"
=threeDtext($color, $depth, $harshess: 1%)
$all: ()
@for $i from 0 through $depth
$all: append($all, append(0 $i*1px 0, darken($color, $i*$harshess)), comma)
text-shadow: $all
h1
+threeDtext(#CC9F9D, 8, 3)
font-size: 72px
h1, p, a
color: #FFF5F5
font-family: Futura, sans-serif
text-align: center
text-transform: uppercase
border: none
outline: none
html
height: 100%
+background(linear-gradient(top, #C9231A, #940A03))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment