Content Sticky on Scroll with jQuery - Stickem

Content Sticky on Scroll with jQuery - Stickem
File Size: 35.3 MB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Stickem is an usefull jQuery Plugin for Making contents sticky as you scroll, to a point. 

How to use it:

1. Include jQuery library and jquery.stickem.js

<script src="jquery.js"></script>
<script src="jquery.stickem.js"></script>

2. Markup

<div class="container">
    <div class="row stickem-container">
        <div class="content">
            Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
        </div>
        
        <div class="aside stickem">
          I'm gonna be sticky!
        </div>
    </div>
</div>

3. CSS

.stickem-container {
  position: relative;
}

.stickit {
    margin-left: 660px;
    position: fixed;
    top: 0;
}

.stickit-end {
    bottom: 40px;
    position: absolute;
    right: 0;
}

4. Call the function

<script>
$(document).ready(function() {
$('.container').stickem();
});
</script>

This awesome jQuery plugin is developed by davist11. For more Advanced Usages, please check the demo page or visit the official website.