jQuery ScrollInArea changes an element to be fixed inside a given container. This plugin works with jQuery 1.8.3 or later.
- Download the source files.
- Include
<script src="path/to/js/jquery.scrollInArea.min.js"></script>
in the body of your page - Add to your stylesheet the following rule:
.fixed-wrapp {
position: relative;
}
- Add the following code to your script:
$('#fix-scroll-1').scrollInArea({
wrapper: '#fix-scroll-wrapper'
});
- Refresh the page
wrapper - this must be string, represents the element id
Tudor Ravoiu
http://github.com/tudor2004
Copyright 2013 Sites-Webdesign under GPL 2.0.