1.0.0 • Published 8 years ago

jquery-proximity-glow v1.0.0

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
8 years ago

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.

NameTypeDefaultDescription
colorcss string#fffColor for the glow.
inversebooleantrueIf true, it grows larger as you get closer, false is the opposite.
shadowTypestringbox-shadowWhether to use box-shadow or text-shadow.
maxBlurSizeinteger180Pixels for maximum glow size (spread := size/2).

License

Apache License 2.0