Features
- Two components: a HOC to track the scroll position and a component to render the image.
- Handles scroll events, resize events and re-renders that might change the position of the components.
- Placeholder by default with the same size of the image.
- A custom placeholder and threshold can be specified.
beforeLoadandafterLoadevents.- Accepts all standard
<img>attributes.