Skip to content

CampaigningBureau/cb.directives.parallaxBackgroundMoover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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>

About

A simple directive to move divs while scrolling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published