marquee-overflow
v1.0.2
Published
An AngularJS directive that automatically scrolls the content of an element when it overflows
Downloads
27
Maintainers
Readme
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>