Overview
The image component displays an image on the page. The component can be expanded to include a link that opens a Modal. Images are progressively loaded to minimise initial page download times. Images can be left, centre or right aligned within its container. They can also have a maximum width applied.
Images are loaded using a lazy load library; Lazy Load.
Examples
Default variation
<div class="image">
<div class="image__body">
<img src="" alt="Placeholder" data-interchange="[http://placehold.it/800x150,http://placehold.it/800x450]" data-myob-image>
</div>
</div>
Magnify variation
<div class="image image--magnify">
<div class="image__body">
<img src="" alt="Placeholder" data-interchange="[http://placehold.it/800x150,http://placehold.it/800x450]" data-myob-image>
</div>
</div>
Usage guidelines
Dos | Donts |
---|---|
|
|
|
|
Implementation guidelines
Name | Class | Description |
---|---|---|
Alignment |
.image--left
.image--center
.image--right
|
Change Image alignment within their container. |