Skip to content

A jQuery plugin to expand and centralize a image related to parent element independent of size him

License

Notifications You must be signed in to change notification settings

leandrocunha/fillBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FillBox

v.1.0.0

A jQuery plugin to expand and centralize a image related to parent element independent of size him

1.Getting Started

Load jQuery and include FillBox plugin file

<!-- Include jquery -->
<script src="jquery.js"></script>

<!-- Include fillbox plugin -->
<script src="fill.box.js"></script>

2.Set up your HTML

You don't need any special markup. All you need is add the class ".fill-box" to any image warraped with a block (preferencially) element.

<div>
  <img src="myimage.jpg" class="fill-box" />
</div>

3.Call the plugin

Now just call the FillBox initializer function and tadaaaaa.

$(".fill-box").fillBox();

License

The MIT License (MIT)

About

A jQuery plugin to expand and centralize a image related to parent element independent of size him

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published