Skip to content

Instantly share code, notes, and snippets.

@Silvenga
Created June 22, 2014 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Silvenga/34edb2d98af00bb0f652 to your computer and use it in GitHub Desktop.
Save Silvenga/34edb2d98af00bb0f652 to your computer and use it in GitHub Desktop.
<!-- This is a jquery plugin - we need jquery > 2.1 -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- Off load the animations to CSS so we can get hardware acceleration -->
<link rel="stylesheet" type="text/css" href="jquery.lazyView.min.css" />
<!-- The lazyView script -->
<script src="jquery.lazyView.min.js"></script>
<script>
$(document).ready(function() {
// Select the HTML portion to lazyView.
// To ensure a smooth transition set the element's visibility to hidden
// LazyView will make the selected element visible when complete with setup
$('body').lazyView();
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment