Revealing cards (on hover)

Last updated: September 30, 2021 Written by: Avatar Teresa
Table of contents
Table of contents

Revealing cards are elements that become transparent when hovering over them. You can hide some text underneath or add a link to them. To create revealing cards in Landingi, use some advanced functions inside our editor and a bit of the CSS code.

See the example here: (please, hover over one of the graphical elements on the page).

Add the CSS code

1. Log in to the Landingi platform and go to the editor of your landing page.

2. Navigate to Page Settings and click Custom CSS.

When editing, you can go back to Page Settings by clicking on the arrow:

3. In the Custom styles tab, paste the code indicated below in the Add custom styles field.

.card { transition: all 0.3s; } .card:hover { opacity: 0.2; }

4. Save and close.

Create revealing cards

Decide which elements will be revealing cards on your landing page. Images work the best, as you can set a link on them.

1. On the left side of the editor, find the Image widget, then drag and drop it into the active area of your landing page. Read more about image widget options here.

2. In the right-side toolbar, find the Other tab. Then type card in the Classes field.

3. If you want to add a redirection link to your image, find the Click Action tab, choose Link to URL (1) from the drop-down menu and paste your link (2). Select the Open in a new tab option, if needed.

4. To add text that will be visible after hovering over the element, find the Text widget, then drag and drop it into the active area of your landing page.

5. Place the text in the middle of the element. Edit it as needed.

6. Then click on the element below (1), choose Change layer (2) and click Move to top (3).

7. Publish your landing page.

Check if your revealing cards display correctly.


Was this manual helpful?