1.0.2 • Published 7 years ago
marquee-overflow v1.0.2
Table of Contents
An AngularJS directive to automatically marquee the content of an element when it overflows.
Dependencies
- Angular 1.x
- jQuery 3.x
Options
- speed: the speed at which the marquee scrolls in pixels/second
Example
<html>
<head>
<!-- include jQuery, AngularJS, and the marquee-overflow files here -->
<script>
var app = angular.module('app', ['marquee-overflow']);
</script>
<style>
overflow-marquee {
white-space: nowrap;
width:200px;
}
</style>
</head>
<body>
<input type="text" ng-model="text" />
<overflow-marquee speed="60">{{text}}</overflow-marquee>
</body>
</html>