diff --git a/README.md b/README.md
index bb9352d..b6e5119 100644
--- a/README.md
+++ b/README.md
@@ -172,6 +172,18 @@ Note that when specifying these options as html data-attributes, you should conv
false |
(Experimental) If true, will freeze the parallax effect when "over scrolling" in browsers like Safari to prevent unexpected gaps caused by negative scroll positions. |
+
+ opacity |
+ number |
+ 1 |
+ You can customize the image transparency. |
+
+
+ background |
+ string |
+ null |
+ You can customize the background behind the image (works with opacity < 1). |
+
diff --git a/parallax.js b/parallax.js
index 90b5b78..3fb41aa 100755
--- a/parallax.js
+++ b/parallax.js
@@ -134,6 +134,11 @@
overflow: 'hidden'
});
+ if (typeof self.opacity !== undefined)
+ this.$slider.css({ opacity: self.opacity });
+ if (typeof self.background !== undefined)
+ this.$mirror.css({ backgroundColor: self.background });
+
this.$slider.addClass('parallax-slider').one('load', function() {
if (!self.naturalHeight || !self.naturalWidth) {
self.naturalHeight = this.naturalHeight || this.height || 1;