Flippable Card
The FlippableCard widget displays two sides of content in the same space. It shows the front side by default and flips to the back side when a user taps it. You can use it for flashcards, product details, coupon terms, or other content that users can reveal on demand.
Adding a FlippableCard Widget
To add the FlippableCard widget:
- Open the Widget Palette and add the FlippableCard widget from Layout Elements.
- In the Widget Tree, select Card Front. Customize the default Container or replace it with another widget that shows the content you want users to see first.
- Select the FlippableCard widget. In the Properties Panel, open Flippable Card Properties and enable Edit Back of Card.
- In the Widget Tree, select Card Back. Customize the default Container or replace it with another widget that shows the content users should see after the card flips.
Customizing
Select the FlippableCard widget in the Widget Tree, then open Flippable Card Properties in the Properties Panel.
Editing the Back of the Card
Enable Edit Back of Card to show and edit the back of the card on the Canvas. Disable it to return to the front. This option changes only which side is visible while editing; it does not affect the card's runtime behavior.
Changing the Flip Direction
By default, the card flips horizontally. Use Flip Direction to choose one of the following options:
- Horizontal: Flips the card from left to right or right to left.
- Vertical: Flips the card from top to bottom or bottom to top.
Changing the Animation Duration
The flip animation lasts 400 ms by default. Set Flip Animation Duration to a shorter duration for a faster animation or a longer duration for a slower one. Enter the duration in milliseconds; for example, 1,000 ms equals 1 second.
Disabling Flip on Tap
The card flips when tapped by default. Disable Flip on Tap if tapping the card should not switch between its front and back sides.
Best Practices
- Use the same dimensions for the front and back sides and test dynamic content to ensure it does not overflow or get clipped.
- Make it clear that the card is interactive by using a label, icon, or other visual cue.
- Avoid placing essential information only on the back of the card.
- Use a short animation duration so the interaction feels responsive.