cb-directives-parallaxbackgroundmoover
v0.1.2
Published
A simple directive to move divs while scrolling
Downloads
7
Maintainers
Readme
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>