实现文字阴影效果的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
orboxShadow
and auto-prefixes if necessary