Animated Interactive Text Shadow Plugin For jQuery - txtShadow
| File Size: | 4.5 KB |
|---|---|
| Views Total: | 2061 |
| Last Update: | |
| Publish Date: | |
| Official Website: | Go to website |
| License: | MIT |
txtShadow is a really small jQuery plugin for creating animated, interactive, customizable text shadow effect that reacts to mouse movement.
How to use it:
1. Include jQuery library (slim build) and the jQuery txtShadow plugin's script on the webpage.
<script src="//code.jquery.com/jquery-3.1.1.slim.min.js"></script> <script src="txtShadow.min.js"></script>
2. Wrap your text inside an element with the CSS class of 'shadow'.
<h2 class='shadow'>jQuery txtShadow</h2>
3. Apply a default shadow effect to the text.
$('.shadow').txtShadow();
4. Animate the text shadow effect using CSS3 transitions.
.shadow {
transition-duration: .5s;
}
5. Customize the text shadow effect.
$('.shadow').txtShadow({
// shadow size
blur: '3px',
// shadow color
color: "#333"
});
This awesome jQuery plugin is developed by csslick. For more Advanced Usages, please check the demo page or visit the official website.











