Skip to content

Pixeden/tenue-css3-text-effect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tenue CSS text-shadow effect

This is a subtle css text-shadow based effect inspired by this version.

The effect creates a very elegant and stunning result with a mix of shadows and light. You can use your own text with ease and edit the effect to make it your own.

Usage and customization:

Just add the pe-tenue.css file to your project and use the tenue-shadow class to apply the default effect on each elements according to your needs.

The effect was created especially with the idea that you can create your own style and effect with ease using the tenue-shadow() Sass function.

To create a new effect compile the src/styles folder after achieving the desired effect adjusting the different function arguments in the file _objects.scss.

If you're not familiar with Sass you can still create your own custom version of the Tenue effect. Using this pen adjust the different function arguments until satisfied. Then press the button "view compiled" on the SCSS section to obtain the plain CSS code. Copy paste this code into your project CSS file.

Video tutorial

Function arguments

.tenue-shadow {
  text-shadow: tenue-shadow(
    $steps: 70,               // [1]
    $ratio: .0034,            // [2]
    $op: .75,                 // [3]
    $angle: -133deg,          // [4]
    $color: #000,             // [5]
    $bg: white                // [6]
    );
}
  1. Steps max 128, high numbers negatively impacts performance [default: 70] [unitless]
  2. Magic fraction to control space between shadow steps [default: .005] [unitless]
  3. Opacity applied to each shadow step.[default: .85] [unitless]
  4. Angle calculated to generate the x and y axes.[default: -133deg] [deg]
  5. Starter color (usually the same or similar as the text color value).[default: #000] [valid color value]
  6. Color to which the shadows blend(usually the same as the background-color value) [default:null] [valid color value]

© 2015 Pixeden | License

About

Subtle CSS3 text-shadow effect

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published