Berlin - Components | Before/after
"Before / After" is a component that includes two images. Students can move a central bar to show one image or the other. This action allows showing an image in a certain way, showing it differently when moving the bar.
You will find this component in the group of "Image" components.
This component is added within the screens by default (See here) and pop-ups (See here), but it can also be added inside other components (for example, a Highlight, an Accordion, a Row, etc.)
It is a complex component that contains two images. "Before / After" component and its images have specific properties. In order to configure it correctly, we should select each element individually. We can select elements from the breadcrumb trail and from the "Structure" tab.
1. Configure general "Properties" of this component (See the table at the bottom of this page).
2. Select the image on the left. Access its properties, go to "Resource" and click on "Examine" to browse and select an image from the unit Resources folder (see here). Optionally, we can configure two additional properties in this image:
- "Alternative text": a text that is shown when placing the cursor over the image or when the image cannot be loaded.
- "Credits": if we click on the left-upper area over the image, we can add a text that shows authorship credits. This property allows adjusting text contrast depending on the background, so you can put a black text ("Positive" option) or a white text ("Negative" option).
3. Select the image on the right and repeat actions of step 2.
4. Optionally, you can select "Before /After" component and access the "Add" tab. You will be able to add a "Caption" or an "Instruction" (if the instruction was deleted before).
This property allows adding the image position with respect to the central column of contents:
This property allows changing the space occupied by a component inside a central column of contents. This property occupies 100% of the space by default. Text size can be reduced to other preset percentages or can be displayed in "full-size". For some quote styles, "Full" width makes quotes lay over the central column.
This property allows placing the component on the right, on the left or on the centre of the central column where contents are shown. It can only be used when applied "Width" is less than 100%.
It allows inserting a component and "wrap" it with a text.