jQuery plugin that allows elements to glow more or less based on mouse proximity.
See issues.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="/libs/jquery-proximity-glow/jquery.proximity-glow.min.js"></script>
<div>
<button id='glowButton_1' type="submit">Button</button>
</div>
<script>
$('#glowButton_1').proximityGlow({color: 'blue'});
</script>
You should specify options like in usage example above.
Name | Type | Default | Description |
---|---|---|---|
color | css string | #fff |
Color for the glow. |
inverse | boolean | true | If true, it grows larger as you get closer, false is the opposite. |
shadowType | string | box-shadow |
Whether to use box-shadow or text-shadow . |
maxBlurSize | integer | 180 |
Pixels for maximum glow size (spread := size/2). |