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.

$('.container').shadowtext();

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.

Related Posts

drag-drop-file-5x5-jq-uploader

Responsive Drag and Drop File Uploader/Download Plugin | 5x5_jq_uploader

5x5_jq_uploader plugin can be used to instantly create a drop file area and file queue with a little bit of preparation. Bootstrap is used for responsive planning…

Bootstrap-Dark-Mode

Stylesheet For Implementing Dark Mode with Bootstrap

Bootstrap Dark Mode provides a style sheet and two texts that allow you to implement Dark Mode on your website. Initially loaded based on user preferences, can…

responsive-navigation-menu

Multi-purpose Navigation Menu for Javascript Library | jQuery Corenav

coreNavigation is a multipurpose navigation menu for a jquery based javascript library, comes with more style, and is easy to integrate. 11 Default Menu 2 Responsive Navigation…

Simple-Multi-Select-Dropdown-Pure-Vanilla-Javascript

Simple Multi-Select Dropdown Pure Vanilla Javascript | multiSelect.js

MultiSelect.js is a simple, clean, and progressive JavaScript library designed for easy integration with any type of project or system. The design was heavily influenced by the…

Confetti-Falling-Animation-Effect-party

Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…

how-to-create-popup-in-html-with-css

How To Create A Popup in HTML with CSS

How to create popup in html with css – Popup without JavaScript is an elegant pop-up panel component with an animated scale, written in CSS. Have you…