Skip to content

DanielTamkin/shimThis.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

shimThis.js

a simple jQuery plugin to "Shim" an element onto another.

preview of shimThis in action (demo)

Settings

ontop: element to be shimmed on

$("section.shim").shimThis({
  ontop: 'header.site',
});

offset: offset of shim

$("#site-shim").shimThis({
  offset: '400px',
});

can Also be combined

<script>
  $offset = $("section.shim article").first().outerHeight()/2;
  $("section.shim").shimThis({
    ontop: 'header.site',
    offset: $offset+'px'
  });
</script>

About

a simple jQuery plugin to "Shim" an element onto another.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published