cb-directives-parallaxbackgroundmoover

0.1.2 • Public • Published

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>

Package Sidebar

Install

npm i cb-directives-parallaxbackgroundmoover

Weekly Downloads

8

Version

0.1.2

License

ISC

Last publish

Collaborators

  • mscharl