@precision-nutrition/imgix-photo
v3.2.0
Published
Common component for photos displayed via Imgix
Downloads
2
Maintainers
Keywords
Readme
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-photo
Usage
<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 tofalse
if you don't want the rendered<img
to have itswidth
andheight
properties set. This is useful if you want a "responsive" image.
Class Names
- Loading images will have an
.is-loading
class - Completed images will have an
.is-complete
class
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.