8000 GitHub - allenJynRoyston/acr-backstretch: A simple directive for Scott Robinson's Backstretch jQuery plugin.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

allenJynRoyston/acr-backstretch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

acr-backstretch

*Updated 4/6/2016

What Am I?!

A simple directive for Scott Robinson's Backstretch jQuery plugin.

  • Simple
  • Responsive
  • Mobile

Usage

<div backstretch fillheight='300' fillsrc="'image/image.js'" fallback="'image/anotherimage.js'" fade='500'></div>

OR WITH ANGULAR HOOKS

<div backstretch fillheight='300' fillsrc="{{imageLocation}}" fallback="{{alterImageLocation}}" fade='500'></div>

Live Demo

Check it out

Version

1.0.0

Updates

  • None

Dependencies

  • jQuery (not included)
  • backstretch.js (included)

NPM / Bower

npm install acr-backstretch --save-dev
bower install acr-backstretch --save

Installation

Include backstrech after you've included jQuery:
<script src="./js/backstretch.min.js"> <script>
Include the module in your scripts after AngularJS
<script src="./js/acr-backstretch.min.js"> <script>

Add acrBackstretch in your apps dependencies.
var app = angular.module('myApp', ['acrBackstretch']);

Parameters

fade: [numbers] in miliseconds (i.e. 1000 is 1 second)
fillheight: [number] in pixels (i.e. 400 is 400px)
fallback: [string/url] location of fallback image if desired image (fillsrc) does not exist

License

MIT - go nuts y'all.

About

A simple directive for Scott Robinson's Backstretch jQuery plugin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0