实现文字阴影效果的JS库:Shine.js

jopen 11年前

Shine.js 可轻松帮你实现文字的阴影效果。

window.addEventListener('mousemove', function(event) {    shine.light.position.x = event.clientX;    shine.light.position.y = event.clientY;    shine.draw();  }, false);

特性

  • Dynamic light positions
  • Customizable shadows
  • No library dependencies, AMD compatible
  • Uses text or box shadows based on content
  • Works in browsers that support textShadow or boxShadow and auto-prefixes if necessary

项目主页:http://www.open-open.com/lib/view/home/1400121770426