├── .gitignore ├── paraxify.css ├── _paraxify.scss ├── paraxify.min.js ├── README.md ├── paraxify.js └── paraxify.coffee /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | *.codekit 3 | *.sass-cache -------------------------------------------------------------------------------- /paraxify.css: -------------------------------------------------------------------------------- 1 | .paraxify { 2 | background-attachment: fixed; 3 | background-position: center center; 4 | background-size: cover; 5 | } 6 | -------------------------------------------------------------------------------- /_paraxify.scss: -------------------------------------------------------------------------------- 1 | .paraxify, 2 | %paraxify { 3 | background-attachment: fixed; 4 | background-position: center center; 5 | background-size: cover; 6 | } -------------------------------------------------------------------------------- /paraxify.min.js: -------------------------------------------------------------------------------- 1 | !function(e,t,i){"use strict";var o;o=function(i,o){var s,n,r,h,f,g,c;return g=0,c=0,r=0,h={},f=[],n=0,s=function(t,i){this.options={speed:1,boost:0};for(r in i)this.options[r]=i[r];if((this.options.speed<0||this.options.speed>1)&&(this.options.speed=1),t||(t="paraxify"),e.getElementsByClassName(t.replace(".","")))this.photos=e.getElementsByClassName(t.replace(".",""));else{if(e.querySelector(t)===!1)throw new Error("The elements you're trying to select don't exist.");this.photos=querySelector(t)}h=this.options,f=this.photos,this._init(this)},s.prototype={update:function(){for(c=t.innerHeight,r=0;rf[e].offsetTop&&g