Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1021 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 1021 Bytes

angular-skrollr-directive

This is a AngularJS directive for skrollr (parallax scrolling library).

Requirement

Usage

Import skrollr.dir.js on your angular app page.

index.html:

<script src="js/directives/skrollr.dir.js"></script>

app.js:

var app = angular.module('app', [
  'directives.skrollr'
]);

Now you can use <div skrollr> on your element, for this example, it will be look like:

<div skrollr data-0="background-color:rgb(0,0,255);" data-500="background-color:rgb(255,0,0);">WOOOT</div>

View skrolle demo in browser