UNPKG

angular-scroll-animate

Version:

An Angular.js directive which allows you to perform any javascript actions (in the controller, or on the element) when an element is scrolled into, or out of, the users viewport, without any other dependencies.

21 lines (16 loc) 679 B
<!doctype html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Angular Timeline Example</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0 user-scalable=no" /> <link rel="stylesheet" href="../bower_components/animate.css/animate.css" /> </head> <body ng-app="example"> <script src="../bower_components/angular/angular.js"></script> <script src="../dist/angular-scroll-animate.js"></script> <script src="app.js"></script> <script src="example-controller.js"></script> <div ng-include="'example.html'" ng-controller="ExampleCtrl"></div> </body> </html>