Press "Enter" to skip to content

jQuery Plugin That Applies An Interactive, Animated Shadow To Text

shadowtext is a jQuery plug-in for adding animated and interactive shadow effects to text that moves in response to the position of the mouse.

Important! Internet Explorer (at least up to and including IE9) does not support text-shadow. As such, this Internet Explorer plugin is not supported.

jquery text animation, cool jquery text animation, text animation plugin, text plugin, cool jquery effects

How to make use of it:

1. Load the necessary jQuery and jQuery UI libraries into the document.

<script src="jquery.min.js"></script>
<script src="jquery-ui.min.js"></script>

2. Download and include the shadowtext extension after the jQuery library.

<script src="jquery.shadowtext.js"></script>

3. Call the extension to the main text container to apply the default text-shadow effect.


4. You can pass an object through the following options.

// Restrict the axis of movement. 
// Either 'x' or 'y' are allowed. 
// Leave empty if you don't want to restrict the axis.
axis:     '', 

// The amount of blur when closest to the text.
blurClose:    0,

// The amount of blur when farthest to the text. 
blurFar:    10,

// Set the color of the shadow.
// Allowed types are 3 and 6 digit hex codes, rgb(), rgba() and color names. 
// Alpha values are ignored.
color:      "#000000",

// Maximum distance of the shadow from the text.
distance:     10,

// If specified, an easing method will be used to determine the distance of the shadow (also influences blur and opacity) based on the mouse distance. 
easing:     '',

// Framerate measured in frames-per-second. 
// Don't change unless you want a specific effect. 
// By default this is set at the same framerate as jQuery effects. 
framerate:    25,

// Enable this option to hide the text and only show the shadow. 
hideText:   false,

// When the mousepointer is at or beyond the specified mouseRange from the text, the shadow will be at it's farthest.
mouseRange:   500,

// The amount of opacity when closest to the text. 
// Range 0 to 1. 
opacityClose: 1,

// The amount of opacity when closest to the text. 
// Range 0 to 1. 
opacityFar:   1

jquery plugin for animated text shadows with mouse, jQuery.shadowtext Plugin/Github

See Demo And Download

Official Website(vanderlee): Click Here

This superior jQuery/javascript plugin is developed by vanderlee. For extra advanced usage, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.