3.2.0 • Published 4 years ago
@precision-nutrition/imgix-photo v3.2.0
imgix-photo 
Provides a low-level component for rendering images that use the Imgix service.
Compatibility
- Ember.js v3.16 or above
- Ember CLI v2.13 or above
- Node.js v10 or above
Installation
ember install @precision-nutrition/imgix-photoUsage
<ImgixUrl
@alt="Some helpful alt-text"
@url="http://sub.imgix.com/path-to-image.jpg"
@params="{{hash"
w="300"
}}
class="Some Classes Here"
/>Where @params uses the {{hash helper to specify any supported option for
Imgix.
Other Properties
autoSetDimensions: set tofalseif you don't want the rendered<imgto have itswidthandheightproperties set. This is useful if you want a "responsive" image.
Class Names
- Loading images will have an
.is-loadingclass - Completed images will have an
.is-completeclass
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.