Skip to content

karan1276/shadow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Shadow.js by Karan S. A simple jQuery plugin that will cast a long shadow, just like flat design icons :) Created by Karan S.

License: Attribution-ShareAlike 4.0 International

Demo

View demo

Usage

To use this on your website, simply include the latest jQuery library found here, together with shadow.js into your document, follow by the html markup and a function call as follows:

<div class="long-shadow">Shadow.js</div>
...
$(".long-shadow").shadow({
    // These are the defaults.
    color: "#1976D2",//color of the cast shadow
    length:550,//lenght of the shadow
    angle:315,//angle of the shadow with +ve X-axis
});

Future of this plugin

You will notice that the shadow ends sharply, ill try to make it fade away, probably add another option to define the length during which the shadow fades away.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published