/angular-skrollr-directive

AngularJS directive for skrollr (parallax scrolling library)

Primary LanguageJavaScript

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