1.0.0 • Published 8 years ago
jquery-proximity-glow v1.0.0
jquery-proximity-glow
jQuery plugin that allows elements to glow more or less based on mouse proximity.
Plans
See issues.
Usage
<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>
Options
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). |
License
1.0.0
8 years ago