A library for pretty shadows.
Install using Bower:
bower install shine
Or get the script directly:
Include the script
<script src="path/to/shine.min.js"></script>
Instantiate shine.js:
var shine = new Shine(document.getElementById('my-shine-object'));
Change the light position:
window.addEventListener('mousemove', function(event) {
shine.light.position.x = event.clientX;
shine.light.position.y = event.clientY;
shine.draw();
}, false);
textShadow
or boxShadow
and auto-prefixes if necessary