Invision UI v.19.6.0-0

Getting Started

  • Running Invision UI
  • UI Component Anatomy
  • Authoring SCSS
  • Authoring Presentational Behavior

Component Foundations

  • SCSS Authoring
    • Mixins & Variables
    • Stateful Classes
  • State Guidance
    • Empty/Zero State
    • Loading State
  • Utilities
    • Align
    • Display
    • Flexbox
    • Font Size
    • Layout
    • Offset
    • Position
    • Overflow
    • Size
    • Spacing
    • Text
  • Layout
    • Arrange [Deprectated]
    • Divided Columns
    • Embed Video
    • Full and Center
    • Fill [Deprectated]
    • Grid
    • Media Blocks
    • Panels
    • Vertical Layouts
  • Media Queries
  • Angular Behaviors
    • App Theme Directive
    • Auto Focus Input
    • Filters
    • Popup (modal dialog) Manager
    • Tether (tooltip/dropdown) Manager
    • Resize Sensor
    • Watchers

UI Component Library

  • Content & Containment
    • Active Translation
    • Auto Fit Text
    • Address
    • Basic & Input Table
    • Brand Logo/Slogan
    • Call to Action - Empty State
    • Carousel
    • Cart
    • Choice
    • Collapsible Container
    • Copyright Footer
    • Coupon Redeemer
    • Content
    • Date Relative Display
    • Definition Lists
    • Delimited List
    • Details
    • Expiration Date Display
    • Feature Toggle
    • Form Section Heading
    • Header
    • Heading
    • Heading With Annotation
    • Icons
    • Interaction Details
    • Labeled Balance
    • Link
    • Main Container
    • Metadata Card
    • Metadata List Item
    • Offering QuickView
    • Payment Instrument
    • Preference Dialog
    • Pricing Plan Decoration
    • Product Availability
    • Product Details
    • Product Image
    • Quick Info Panel
    • Remark
    • Renewal Column
    • Richlist Filterbar
    • Richlist Wrapper
    • Scrollable Horizontal List
    • Search Card
    • Search Panel
    • Section
    • Selectable Option
    • Smart Truncate
    • Status Grid
    • Tooltip
  • Data Visualizations
    • Bill Runs
    • Comparison Table
    • Datatable
    • Progress Tracker
    • Schedules
    • Query Builder
  • Dialogs
    • Confirmation Dialog
    • Dialog
    • Rich List Dialog
    • Wait Dialog
  • Forms and Filters
    • Additional Properties
    • Autocomplete
    • 3 Field Date Input
    • Checkbox
    • Credit Card
    • Bulk Action Bar
    • Buttons
    • Confirmation Button
    • Date Picker
    • E-Check
    • Entity Specification
    • External Bill
    • External Gift Card
    • Focus Group
    • Forms
    • Filter Bar
    • Filter Dropdowns
    • Gift Card
    • Grouped Check Filters
    • Inputs
    • Input Select Combo
    • Monetary Input
    • Multi Dropdown Selector
    • Multiple Numeric Input
    • Monetary Range Input
    • Password Unmask Button
    • Select
    • Select Button Or Stepper
    • Select Or Text Input
    • Stepper
    • Tag Dropdown
  • Navigation & Flow
    • Back Banner
    • Back Component
    • Breadcrumbs
    • Details Pager
    • Expandable Section
    • Infinite Scroll
    • Open New Window
    • Pager
    • Fancy Richlist
    • Standard Navigator
    • Status Indicator
    • Step Progress Bar
    • Step Progress Indicator
    • Tab Card
    • Tab Panel
    • Tier Navigator
    • Wizard
  • Notifications
    • Loading Indicator
    • Toast Notifications
  • Deprecated
    • Content Area

Showcase

  • General
    • Simplelist
    • Richlist
    • Primary (side) Navigator
  • Customer Care
    • Case Activity List
    • Customer Care Navigator Component
    • Dashboard
    • Decisions
  • Reporting
    • Content Visualization

Unit Testing

  • Actions
  • Components
  • Selectors
  • Reducers

End-to-end Testing

Statistics

Flex Embed

In this section

Variants
  • Flex Embed Component
  • Flex Embed Component - Dynamic Ratio;
  • Flex Embed Component - Max height
  • Flex Embed Component - Max width
  • Flex Embed Component - 3:1 Ratio;
  • Flex Embed Component - 2:1 Ratio;
  • Flex Embed Component - 16:9 Ratio;
  • Flex Embed Component - 4:3 Ratio;

Flex Embed Component

Default aspect ratio is 1:1. The aspect-ratio hack is applied to an empty element to respect `max-height`.

HTML
<style>
.Test-area {
    max-width: 500px;
    margin-bottom: 1em;
}
.Test-area img {
    height: auto;
    max-width: 100%;
}
.Test-area iframe {
    height: 100%;
    width: 100%;
}
</style>
<div class="Test-area">
  <div class="l-flexEmbed">
    <div class="l-flexEmbed-ratio"></div>
    <div class="l-flexEmbed-content">
     <iframe width="1200" height="1200" src="http://www.youtube.com/embed/BOOljk_LOcs" frameborder="0" allowfullscreen></iframe>
    </div>
  </div>
</div>
<div class="Test-area">
  <div class="l-flexEmbed">
    <div class="l-flexEmbed-ratio"></div>
    <div class="l-flexEmbed-content">
     <img width="600" height="600" src="http://lorempixel.com/600/600/nature" alt="">
    </div>
  </div>
</div>

Flex Embed Component - Dynamic Ratio;

Dynamic Ratio;

HTML
<div class="Test-area">
 <div class="l-flexEmbed">
   <div class="l-flexEmbed-ratio" style="padding-bottom:50%"></div>
   <div class="l-flexEmbed-content">
     <iframe width="1200" height="1200" src="http://www.youtube.com/embed/BOOljk_LOcs" frameborder="0" allowfullscreen></iframe>
   </div>
 </div>
</div>

Flex Embed Component - Max height

with a max height setting

HTML
<div class="Test-area">
 <div class="l-flexEmbed" style="max-height: 200px;">
   <div class="l-flexEmbed-ratio"></div>
   <div class="l-flexEmbed-content">
     <iframe width="1280" height="1280" src="http://www.youtube.com/embed/BOOljk_LOcs" frameborder="0" allowfullscreen></iframe>
   </div>
 </div>
</div>

Flex Embed Component - Max width

with a max width setting

HTML
<div class="Test-area">
 <div class="l-flexEmbed" style="max-width: 200px;">
   <div class="l-flexEmbed-ratio"></div>
   <div class="l-flexEmbed-content">
     <iframe width="1280" height="1280" src="http://www.youtube.com/embed/BOOljk_LOcs" frameborder="0" allowfullscreen></iframe>
   </div>
 </div>
</div>

Flex Embed Component - 3:1 Ratio;

3:1 Ratio;

HTML
<div class="Test-area">
 <div class="l-flexEmbed">
   <div class="l-flexEmbed-ratio l-flexEmbed-ratio--3by1"></div>
   <div class="l-flexEmbed-content">
     <img width="600" height="200" src="http://lorempixel.com/600/200/nature" alt="">
   </div>
 </div>
</div>

Flex Embed Component - 2:1 Ratio;

2:1 Ratio;

HTML
<div class="Test-area">
 <div class="l-flexEmbed">
   <div class="l-flexEmbed-ratio l-flexEmbed-ratio--2by1"></div>
   <div class="l-flexEmbed-content">
     <img width="600" height="300" src="http://lorempixel.com/600/300/nature" alt="">
   </div>
 </div>
</div>

Flex Embed Component - 16:9 Ratio;

16:9 Ratio;

HTML
<div class="Test-area">
 <div class="l-flexEmbed">
   <div class="l-flexEmbed-ratio l-flexEmbed-ratio--16by9"></div>
   <div class="l-flexEmbed-content">
     <img width="500" height="280" src="http://lorempixel.com/500/280/nature" alt="">
   </div>
 </div>
</div>

Flex Embed Component - 4:3 Ratio;

4:3 Ratio;

HTML
<div class="Test-area">
 <div class="l-flexEmbed">
   <div class="l-flexEmbed-ratio l-flexEmbed-ratio--4by3"></div>
   <div class="l-flexEmbed-content">
     <img width="500" height="375" src="http://lorempixel.com/500/375/nature" alt="">
   </div>
 </div>
</div>