1.0.2 • Published 6 years ago

marquee-overflow v1.0.2

Weekly downloads
11
License
GPLv2
Repository
gitlab
Last release
6 years ago

Table of Contents

  1. Dependencies
  2. Options
  3. Example

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>