Simple Exampleslink
You can use the Media
component to display images scaled to a specific aspect ratio. The default included
aspect ratios are 16-9
, 4-3
, and 1-1
. You can add more by either using the react-md-media-aspect-ratio
mixin, or updating the md-media-aspect-ratios
variable with additional values.
The Media
component will scale to whatever the size of its container is and maintain the aspect ratio.
In enim aliquip in reprehenderit aliqua dolore. Enim nisi non laboris mollit fugiat aliqua officia. Excepteur quis nulla ullamco minim commodo ea nisi reprehenderit ipsum eiusmod esse ad consequat eiusmod. Sunt ullamco aute velit ipsum ad mollit cillum mollit cillum. Nostrud voluptate fugiat voluptate ex est. Non sunt enim magna ex deserunt voluptate culpa elit nisi cillum id magna. Aute dolore laborum velit labore.
Aliquip sit quis pariatur magna ullamco. Laboris qui quis reprehenderit ad nostrud aliqua Lorem est aute aliqua laboris deserunt pariatur. Sint reprehenderit fugiat do officia pariatur officia aliqua commodo laborum exercitation. Veniam do reprehenderit aliqua Lorem tempor sint consectetur anim ad.
Voluptate officia eiusmod ex labore et aute dolor aute consequat. Irure anim ut adipisicing quis laboris quis esse sunt ipsum labore non. Deserunt duis proident dolor aliquip aute deserunt consectetur do nostrud proident amet in.
Other Media Typeslink
By default, img
, iframe
, svg
, video
, embed
, and object
elements will be
scaled correctly within a Media
component. These defaults can be changed by updating the
md-media-embedded-selectors.
The MediaOverlay
component can even be used above videos, even though that might not really be
the best idea.