An open API service indexing awesome lists of open source software.

https://github.com/allexcd/vertically-centered-element

AngularJS directive to dynamically add absolute position to a targeted element and to position it vertically centered.
https://github.com/allexcd/vertically-centered-element

Last synced: 8 months ago
JSON representation

AngularJS directive to dynamically add absolute position to a targeted element and to position it vertically centered.

Awesome Lists containing this project

README

          

vertically-centered-element
===========================

Directive to dynamically add absolute position to a targeted element and to position it vertically centered.

Dependencies
============
To use this directive in your projects, you must include its dependencies. Asumming you already have angular and jquery libraries included in your project, you're going to need the main directive file: VerticallyCenteredElement.js

Usage
=====
Once you've checked that everything is in place, you can use this directive like so:

```html

centered element

```

or

```html

centered element

```

Parameters
==========
centering-animation

It dictates if an animation should be used to vertically center an element. Value should be given in milliseconds.

Demo
====
http://plnkr.co/edit/f0OnoZsiFFcKplUvnNa6?p=info

http://embed.plnkr.co/f0OnoZsiFFcKplUvnNa6/preview