Skip to content

sun-runners/ngBorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngBorder

ngBorder is an angularjs library that creates border animation


DEMO

https://kimsunwook.github.io/ngBorder (border.css: https://github.com/gsco/Border.css)


INSTALL

bower install ngBorder --save

Quick start

Copy-paste the stylesheet <script> into your <body> and <link> into your <head>.


ngBorder.js & ngBorder.css

<script src=".bower_components/ng-border/ngBorder.js"></script>
<link href=".bower_components/ng-border/ngBorder.css" rel="stylesheet">

or

<script src="https://cdn.rawgit.com/KimSunWook/ngBorder/v1.1.3/ngBorder.js"></script>
<link href="https://cdn.rawgit.com/KimSunWook/ngBorder/v1.1.3/ngBorder.css" rel="stylesheet">

USAGE

Make sure you include the module 'ngBorder' in your application config

var app = angular.module('myApp', [
  'ngBorder',
  ...
]);

You can choose among 32 modes from Border.css (https://github.com/gsco/Border.css).

  • border-corners
  • border-corners-rev
  • border-separate
  • border-separate-rev
  • border-box-top
  • border-box-right
  • border-box-bottom
  • border-box-left
  • border-box-top-rev
  • border-box-right-rev
  • border-box-bottom-rev
  • border-box-left-rev
  • border-parallel
  • border-parallel-rev
  • border-parallel-vert
  • border-parallel-vert-rev
  • border-undo-corners
  • border-undo-corners-rev
  • border-undo-separate
  • border-undo-separate-rev
  • border-undo-box-top
  • border-undo-box-right
  • border-undo-box-bottom
  • border-undo-box-left
  • border-undo-box-top-rev
  • border-undo-box-right-rev
  • border-undo-box-bottom-rev
  • border-undo-box-left-rev
  • border-undo-parallel
  • border-undo-parallel-rev
  • border-undo-parallel-vert
  • border-undo-parallel-vert-rev
<div
  ng-border="'border-corners'"
  ng-border-color="'#FF5722'"
  ng-border-width="'5px'">
</div>

Now you can apply the border animation effect to the desired element.

  angular.module('myApp', [
    'ngBorder',
    ...
  ]);

Easy!

About

ngBorder is an angularjs library that creates border animation

Resources

License

Stars

Watchers

Forks

Packages

No packages published