Skip to content

Commit 6f73e06

Browse files
committed
docs: update
1 parent d505a55 commit 6f73e06

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Diff for: README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -111,25 +111,33 @@ $scale: 0.5; // the scale of loading image in place holder
111111
- root
112112
The element that is used as the viewport for checking visiblity of the target. Must be the ancestor of the target. Defaults to the browser viewport if not specified or if null.
113113

114-
- rootMargin
114+
- rootMargin
115+
115116
Margin around the root. Can have values similar to the CSS margin property, e.g. "10px 20px 30px 40px" (top, right, bottom, left). The values can be percentages. This set of values serves to grow or shrink each side of the root element's bounding box before computing intersections. Defaults to all zeros.
116117

117118
- threshold
119+
118120
Either a single number or an array of numbers which indicate at what percentage of the target's visibility the observer's callback should be executed. If you only want to detect when visibility passes the 50% mark, you can use a value of 0.5. If you want the callback run every time visibility passes another 25%, you would specify the array [0, 0.25, 0.5, 0.75, 1]. The default is 0 (meaning as soon as even one pixel is visible, the callback will be run). A value of 1.0 means that the threshold isn't considered passed until every pixel is visible.
119121

120122
- blurFilter
123+
121124
If you just need blur filter for loading image. Set a number to it.
122125

123126
- filter
127+
124128
If you want to set more [filter](https://developer.mozilla.org/en-US/docs/Web/CSS/filter). It uses the input string as css filter.
125129

126130
- placeHolderImageSrc
131+
127132
src for loading image. It works just like src, takes base64 or url.
128133

134+
- imageRatio
135+
136+
image width / height
137+
129138
For `ngx-image-placeholder` directive, it takes
130139

131140
- imageRatio
132-
image width / height
133141

134142
- placeHolderImageSrc
135143

0 commit comments

Comments
 (0)