From 6250f994c085fcc5b39316ebee2e82f0ec1a853d Mon Sep 17 00:00:00 2001 From: Mark Elphinstone-Hoadley Date: Tue, 13 Aug 2013 10:20:51 +0100 Subject: [PATCH 1/2] //make the block array public so it can be manipulated i.e. for responsive layouts --- js/jquery.scrollorama.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/jquery.scrollorama.js b/js/jquery.scrollorama.js index 6c42d25..9bd1919 100644 --- a/js/jquery.scrollorama.js +++ b/js/jquery.scrollorama.js @@ -407,6 +407,9 @@ delete scrollorama; }; + //make the block array public so it can be manipulated i.e. for responsive layouts + scrollorama.blocks = blocks; + init(); return scrollorama; From 9ff9f7745a83824a0eb5334cad715e8283b221e8 Mon Sep 17 00:00:00 2001 From: Mark Elphinstone-Hoadley Date: Tue, 13 Aug 2013 10:33:11 +0100 Subject: [PATCH 2/2] Added blur property --- js/jquery.scrollorama.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/js/jquery.scrollorama.js b/js/jquery.scrollorama.js index 9bd1919..9d74f9d 100644 --- a/js/jquery.scrollorama.js +++ b/js/jquery.scrollorama.js @@ -224,7 +224,14 @@ } else if(prop === 'text-shadow' ) { target.css(prop,'0px 0px '+val+'px #ffffff'); - } else { + } + else if(prop === 'blur') { + if (!val) { + target.css(browserPrefix+"filter", "none"); + } else { + target.css(browserPrefix+"filter", prop+"("+val+"px)"); + } + } else { if (anim.suffix) { target.css(prop, val + anim.suffix); } else {