Skip to content
This repository has been archived by the owner. It is now read-only.
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (44 sloc) 1.09 KB
<!DOCTYPE html>
<meta charset="utf-8" />
<title>Scroll Trigger</title>
<script src=""></script>
<script src="../dist/scroll-trigger.js"></script>
angular.module('demo', ['scroll-trigger'])
.config(function(ScrollTriggerProvider) {
.controller('TestCtrl', function($scope) {
$ = function(thing) {
console.log('called with ' + thing);
.run(function() {
var div = document.createElement('div');
div.setAttribute('scroll-trigger', 'call(123)');
div.setAttribute('ng-controller', 'TestCtrl');
div {
width: 200px;
height: 1000px;
background-color: #147;
.placeholder {
background-color: #000;
.offset {
height: 200px;
background-color: #f83;
<body ng-app="demo">
<div class="placeholder"></div>
<div class="offset"></div>
You can’t perform that action at this time.