This is a AngularJS directive for skrollr (parallax scrolling library).
- angular.js 1.2.6
- skrollr 0.6.21
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>