Skip to content

TecVector/SunnyMouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SunnyMouse

Live Demo

SunnyMouse is a javascript tool that will allow you to add dynamic shadowing to elements without any extra javascript or css tricks. If you have a certain text, or a block element you need to help draw the use towards, then this is the tool for you. Think of it as turning your mouse into a flashlight, and the shadow casts appropriately. Shadow depth and color are all fully customizable using simple data attributes on the object(s).

Getting Started

Include all neccessary files:

  1. jQuery (Any version higher than 1.9.1 will work)
  2. SunnyMouse.js or SunnyMouse.min.js

To install SunnyMouse: via Package Manager:

Install-Package SunnyMouse -Version 1.0.0.1

via .NET CLI:

dotnet add package SunnyMouse --version 1.0.0.1

via PackageReference:

<PackageReference Include="SunnyMouse" Version="1.0.0.1" />

via Paket CLI:

paket add SunnyMouse --version 1.0.0.1

For Shadowing Text:

Add the class 'sunnyMouseText' to the text element (Required) Add the following data-attributes to the elemement:

  1. data-max-offsetx (default is 10)
  2. data-max-offsety (default is 10)
  3. data-highlight-color (default is #6f6f6f)
<h1 class="display-4 sunnyMouseText" 
    data-max-offsetx="10" 
    data-max-offsety="10" 
    data-highlight-color="blue">Text Element</h1>

For Shadowing Block Elements:

Add the class 'sunnyMouseBox' to the block element (Required) Add the following data-attributes to the elemement:

  1. data-max-offsetx (default is 10)
  2. data-max-offsety (default is 10)
  3. data-highlight-color (default is #6f6f6f)
  4. data-highlight-spread (default is 10)
  5. data-highlight-inset (default is off)
<input type="button"
    class="sunnyMouseBox btn-dark btn btn-lg"
    data-max-offsetx="10"
    data-max-offsety="10"
    data-highlight-color="#6f6f6f"
    data-highlight-spread="0"
    data-highlight-inset="inset"
    value="Block Element" />

About

A quick tool for adding some flare to your buttons and input controls.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published