0.1.2 • Published 9 years ago

cb-directives-parallaxbackgroundmoover v0.1.2

Weekly downloads
6
License
ISC
Repository
github
Last release
9 years ago

#Parallax Background moover npm Build Status

This directive makes it easy to open a social-media-share link inside a popup window. (But it will also work with any other link)

Usage with NPM

Install

npm install -S cb-directives-parallaxbackgroundmoover

Require in your angular app
const angular      = require('angular'),
      myAngularApp = angular.module('myApp', [
          require('cb-directives-parallaxbackgroundmoover')
      ]);
Use inside your website
<!-- works with static links -->
<a share-window href="https://www.facebook.com/sharer/sharer.php?u=https%3A//github.com/CampaigningBureau/cb.directives.parallaxBackgroundMoover">Share this!</a>

<!-- also works with dynamic links -->
<a share-window ng-href="{{ 'https://www.facebook.com/sharer/sharer.php?u=https%3A//github.com/CampaigningBureau/cb.directives.parallaxBackgroundMoover' }}">Share this!</a>

Usage by CDN

Load the Script
<script src="https://cdn.rawgit.com/CampaigningBureau/cb.directives.parallaxBackgroundMoover/master/dist/cb.directives.parallaxbackgroundmoover.min.js"></script>

I'm planning to add this repo to cdnjs

Add the dependency
var myAngularApp = angular.module('myApp', ['cb.directives.parallaxBackgroundMoover']);
Use inside your website
<!-- works with static links -->
<a share-window href="https://www.facebook.com/sharer/sharer.php?u=https%3A//github.com/CampaigningBureau/cb.directives.parallaxBackgroundMoover">Share this!</a>

<!-- also works with dynamic links -->
<a share-window ng-href="{{ 'https://www.facebook.com/sharer/sharer.php?u=https%3A//github.com/CampaigningBureau/cb.directives.parallaxBackgroundMoover' }}">Share this!</a>