Title: Building a card layout with a “hover reveal” effect
Author: Damon Cook
Published: July 30, 2024
Last modified: August 19, 2024

---

 * [Showcase](https://wordpress.org/showcase/)
 * [Plugins](https://wordpress.org/plugins/)
 * [Themes](https://wordpress.org/themes/)
 * [Hosting](https://wordpress.org/hosting/)
 * [News](https://wordpress.org/news/)
    - [Learn WordPress](https://learn.wordpress.org/)
    - [Documentation](https://wordpress.org/documentation/)
    - [Education](https://wordpress.org/education/)
    - [Forums](https://wordpress.org/support/forums/)
    - [Developers](https://developer.wordpress.org/)
    - [Blocks](https://wordpress.org/blocks/)
    - [Patterns](https://wordpress.org/patterns/)
    - [Photos](https://wordpress.org/photos/)
    - [Openverse ︎](https://openverse.org/)
    - [WordPress.tv ︎](https://wordpress.tv/)
 *  - [About WordPress](https://wordpress.org/about/)
    - [Make WordPress](https://make.wordpress.org/)
    - [Events](https://events.wordpress.org/)
    - [Five for the Future](https://wordpress.org/five-for-the-future/)
    - [Enterprise](https://wordpress.org/enterprise/)
    - [Gutenberg ︎](https://wordpress.org/gutenberg/)
    - [Job Board ︎](https://jobs.wordpress.net/)
 * [Swag ︎](https://mercantile.wordpress.org/)
 * [Get WordPress](https://wordpress.org/download/)

Search in WordPress.org

 [ Get WordPress ](https://wordpress.org/download/)

[WordPress Developer Blog](https://developer.wordpress.org/news)

Building a card layout with a “hover reveal” effect

 * [Snippets](https://developer.wordpress.org/news/snippets/)
    - [Blocks](https://developer.wordpress.org/news/category/blocks/)
    - [Concepts](https://developer.wordpress.org/news/category/concepts/)
    - [Common APIs](https://developer.wordpress.org/news/category/common-apis/)
    - [Design](https://developer.wordpress.org/news/category/design/)
    - [Playground](https://developer.wordpress.org/news/category/playground/)
    - [Plugins](https://developer.wordpress.org/news/category/plugins/)
    - [Themes](https://developer.wordpress.org/news/category/themes/)
 *  - [About this site](https://developer.wordpress.org/news/about/)
    - [Updates](https://developer.wordpress.org/news/category/updates/)
    - [How to contribute](https://developer.wordpress.org/news/how-to-contribute/)
    - [Tips and guidelines](https://developer.wordpress.org/news/tips-and-guidelines-for-writers/)
 * [Subscribe](https://developer.wordpress.org/news/subscribe/)
 * [Developer Resources](https://developer.wordpress.org/)

 * [Snippets](https://developer.wordpress.org/news/snippets/)
    - [Blocks](https://developer.wordpress.org/news/category/blocks/)
    - [Concepts](https://developer.wordpress.org/news/category/concepts/)
    - [Common APIs](https://developer.wordpress.org/news/category/common-apis/)
    - [Design](https://developer.wordpress.org/news/category/design/)
    - [Playground](https://developer.wordpress.org/news/category/playground/)
    - [Plugins](https://developer.wordpress.org/news/category/plugins/)
    - [Themes](https://developer.wordpress.org/news/category/themes/)
 *  - [About this site](https://developer.wordpress.org/news/about/)
    - [Updates](https://developer.wordpress.org/news/category/updates/)
    - [How to contribute](https://developer.wordpress.org/news/how-to-contribute/)
    - [Tips and guidelines](https://developer.wordpress.org/news/tips-and-guidelines-for-writers/)
 * [Subscribe](https://developer.wordpress.org/news/subscribe/)
 * [Developer Resources](https://developer.wordpress.org/)

# Building a card layout with a “hover reveal” effect

By [Damon Cook](https://profiles.wordpress.org/colorful-tones/)

July 30, 2024

[Advanced](https://developer.wordpress.org/news/category/advanced/), [Blocks](https://developer.wordpress.org/news/category/blocks/),
[Plugins](https://developer.wordpress.org/news/category/plugins/)

Clickable cards are a common interactive component. There are quite a few things
to consider when creating them, and a lot depends on the context in which they’re
being placed. Today, you will learn how to create them with the Grid block and add
some CSS-based animation to enhance the final outcome.

Here are the general steps you will take:

 1. Create a layout with the Grid block and nested inner blocks.
 2. Register a new block style to expand the clickable surface area.
 3. Add animation to nested elements with more custom styles.
 4. Save the block layout as a Pattern.

Below is a video that captures the final “hover reveal” effect that you’ll create.
If you would like to experiment with the final pattern or even a plugin while reading,
here is the [Grid Cards pattern](https://wordpress.org/patterns/pattern/grid-cards/)
and the [hover-reveal-effect plugin](https://github.com/wptrainingteam/hover-reveal-card).

Table of Contents

 1. [Create the card layout with the Grid block](https://developer.wordpress.org/news/2024/07/30/building-a-card-layout-with-a-hover-reveal-effect/#create-the-card-layout-with-the-grid-block)
 2. [Increase the clickable surface area](https://developer.wordpress.org/news/2024/07/30/building-a-card-layout-with-a-hover-reveal-effect/#increase-the-clickable-surface-area)
 3.  a. [Register a block style for a clickable card](https://developer.wordpress.org/news/2024/07/30/building-a-card-layout-with-a-hover-reveal-effect/#register-a-block-style-for-a-clickable-card)
     b. [Animate the label and the excerpt](https://developer.wordpress.org/news/2024/07/30/building-a-card-layout-with-a-hover-reveal-effect/#animate-the-label-and-the-excerpt)
 4. [Wrapping up](https://developer.wordpress.org/news/2024/07/30/building-a-card-layout-with-a-hover-reveal-effect/#wrapping-up)

## Create the card layout with the Grid block

First, you’ll build the card layout and appearance with blocks. I ended up using
the following blocks:

 * A **Grid block** with Auto layout type enabled. Also, you may want to consider
   setting the Advanced > HTML Element to `<section>`.
    - A **Cover block** with an image and an overlay applied. Also, you may want
      to consider setting the Advanced > HTML Element to `<article>`. This depends
      on how you intend to use the final pattern. Different HTML semantics can apply
      in different contexts.
       * A **Stack block** with a minimum height of `22rem` and the vertical alignment
         type is set to Space between. These blocks are representative of our cards.
          - A **Group block** with a nested **Paragraph block** to represent a label
            for our card.
          - Another **Group block** comprised of a nested **Heading** with a link
            and **Paragraph block** as a brief excerpt.

Below is a screenshot of the blocks that form the final [Grid Cards pattern](https://wordpress.org/patterns/pattern/grid-cards/):

![Block editor with List View open and outlines around key Grid block with nested
Stack blocks.](https://developer.wordpress.org/news/files/2024/07/cards-wireframe-
1024x765.png)

You can experiment with different spacing, colors, and typography so that the inner
blocks match your overall design aesthetic.

**Bonus: Block renaming in list view**
Consider renaming the key blocks in the List
View. This is a nice touch for enhancing the editorial experience and can help clarify
what the nested elements represent in each card. Once you’ve finalized your overall
block configuration and want to save it as a pattern then the names will save as
well.[Here is a screenshot](https://developer.wordpress.org/news/files/2024/07/list-view-renaming.png)
which shows how you might rename your cards blocks.

## Increase the clickable surface area

You might have noticed that only the Heading block is clickable. However, your site’s
visitors—especially those browsing on mobile—may appreciate a larger clickable surface
area.

![Demonstrating a before and after of the increase clickable area with visual wireframe
of cards](https://developer.wordpress.org/news/files/2024/07/clickable-surface-area-
1024x877.png)

### **Register a block style for a clickable card**

WordPress doesn’t offer a native method to create such interactions. To achieve 
that, you would need to register a block style and add custom CSS. Add the following
code to your theme’s `functions.php`:

    ```php
    add_action( 'init', 'themeslug_register_block_styles' );

    function themeslug_register_block_styles() {
       register_block_style(
           'core/cover',
           array(
               'name'         => 'card--interactive',
               'label'        => __( 'Card (Interactive)', 'themeslug' ),
               'inline_style' => '
                   .is-style-card--interactive {
                       position: relative;
                   }
                   .is-style-card--interactive :where(.wp-block-group.wp-block-group-is-layout-constrained) {
                       position: static;
                   }
                   .is-style-card--interactive :where(.wp-block-heading) a:after {
                       content: "";
                       inset: 0;
                       position: absolute;
                       z-index: 10;
                   }
               ',
           )
       );
    }
    ```

The code targets the Cover block with custom CSS and expects a nested Heading block
that contains a link.

Back in the Editor, click each Cover block, assign the “Cards (Interactive)” style,
and verify that the entire card is clickable.

![Block editor with List View expanded, Cover block selected and Card (Interactive)
style variation chosen](https://developer.wordpress.org/news/files/2024/07/assign-
card-block-style-1024x429.png)

If you’re happy with the results, you could stop here and enjoy this fully clickable
card. Or, you could add a bit of pizzazz with some animation of the inner blocks.

### Animate the label and the excerpt

Subtle animation can make for a delightful experience. You can extend your custom“
Card (Interactive)” block with some CSS styles.

To keep things organized, let’s move the styles into a separate file and update 
the `functions.php` file:

 1. Create a new file within your theme: `assets/css/blocks/core/cover–card-interactive.
    css`.
 2. Update the `register_block_style()` function and enqueue this new stylesheet. Instead
    of the `inline_style` property, switch to the `style_handle` property and pass 
    a registered handle that calls the external stylesheet.

Replace the previous code with the following:

    ```php
    add_action( 'init', 'themeslug_enqueue_block_styles' );

    function themeslug_enqueue_block_styles() {
       wp_enqueue_block_style(
           'core/cover',
           array(
               'handle' => 'themeslug--card-interactive',
               'src'    => get_theme_file_uri( 'assets/css/blocks/core/cover-card-interactive.css' ),
               'path'   => get_theme_file_path( 'assets/css/blocks/core/cover-card-interactive.css' ),
           )
       );
    }

    add_action( 'init', 'themeslug_register_block_styles' );

    function themeslug_register_block_styles() {
       register_block_style(
           'core/cover',
           array(
               'name'         => 'card--interactive',
               'label'        => __( 'Card (Interactive)', 'themeslug' ),
               'style_handle' => 'themeslug--card-interactive',
           )
       );
    }
    ```

Copy the following CSS into your `cover-card-interactive.css` file. You’re welcome
to adjust the animations to your liking:

    ```line-numbers
    .is-style-card--interactive {
       box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1), 0 4px 4px rgba(0, 0, 0, 0.1), 0 8px 8px rgba(0, 0, 0, 0.1), 0 16px 16px rgba(0, 0, 0, 0.1);
       position: relative;
       transition: box-shadow 0.5s ease;
    }

    .is-style-card--interactive:focus-within,
    .is-style-card--interactive:hover {
       box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.2), 0 4px 4px rgba(0, 0, 0, 0.2), 0 8px 8px rgba(0, 0, 0, 0.2), 0 16px 16px rgba(0, 0, 0, 0.2);
    }

    .is-style-card--interactive :where(.wp-block-group.wp-block-group-is-layout-constrained) {
       position: static;
    }

    /* Make whole card clickable */
    .is-style-card--interactive:not(.has-child-selected) :where(.wp-block-heading) a:after {
       content: "";
       inset: 0;
       position: absolute;
       z-index: 10;
    }

    /* Animate the Cover block image */
    .is-style-card--interactive :where(.wp-block-cover__image-background) {
       filter: saturate(100%) brightness(100%);
       transform: scale(1);
       transition: all 0.35s ease;
    }

    .is-style-card--interactive:not(.has-child-selected):focus-within :where(.wp-block-cover__image-background),
    .is-style-card--interactive:not(.has-child-selected):hover :where(.wp-block-cover__image-background) {
       filter: saturate(200%) brightness(40%);
       transform: scale(1.15);
    }

    /* Animate label area */
    .is-style-card--interactive :where(.is-vertical) .wp-block-group:first-of-type {
       opacity: 0;
       transform: scale(0.95) translateX(-1rem);
       transform-origin: center right;
       transition: all 0.25s ease-in-out;
       transition-delay: 0.2s;
    }

    .is-style-card--interactive:focus-within :where(.is-vertical) .wp-block-group:first-of-type,
    .is-style-card--interactive:hover :where(.is-vertical) .wp-block-group:first-of-type {
       opacity: 1;
       transform: scale(1) translateX(0);
    }

    /* Animate content area */
    .is-style-card--interactive:not(.has-child-selected) :where(.is-vertical) .wp-block-group:first-of-type + .wp-block-group p {
       max-height: 0;
       opacity: 0;
       overflow: hidden;
       transition: max-height 0.35s cubic-bezier(.19,1,.22,1), opacity 0.6s ease;
    }

    .is-style-card--interactive:focus-within :where(.is-vertical) .wp-block-group:first-of-type + .wp-block-group p,
    .is-style-card--interactive:hover :where(.is-vertical) .wp-block-group:first-of-type + .wp-block-group p {
       max-height: 100%;
       opacity: 1;
    }

    .is-style-card--interactive :where(.is-vertical) {
       display: flex;
    }

    @media (prefers-reduced-motion: reduce) {
       .is-style-card--interactive *,
       .is-style-card--interactive *::after,
       .is-style-card--interactive *::before {
           opacity: 1 !important;
           transition: none !important;
           visibility: visible !important;
       }
    }
    ```

## Wrapping up

With a little planning and thought, you can progressively enhance your site’s interactivity
and elevate the overall experience for your visitors.

You can find the [complete plugin code in this GitHub repository](https://github.com/wptrainingteam/hover-reveal-card).
You’re welcome to fork it, customize it, and share how you use it in projects in
the comments below. 

Props to [@greenshady](https://profiles.wordpress.org/greenshady/), [@ironnysh](https://profiles.wordpress.org/ironnysh/),
and [@bph](https://profiles.wordpress.org/bph/) for the thoughtful feedback and 
review of this post.

**Share the post: **

**Categories:** [Advanced](https://developer.wordpress.org/news/category/advanced/),
[Blocks](https://developer.wordpress.org/news/category/blocks/), [Plugins](https://developer.wordpress.org/news/category/plugins/)

**Tags:** [Animation](https://developer.wordpress.org/news/tag/animation/), [Extenders](https://developer.wordpress.org/news/tag/extenders/)

## 11 responses to “Building a card layout with a “hover reveal” effect”

 1.  ![Mateus Machado Luna Avatar](https://secure.gravatar.com/avatar/da4333e9e520f56887af71e68da6b6bdffb445f8c722e657ff3abe782500c0a7?
     s=40&d=identicon&r=g)
 2.  [Mateus Machado Luna](https://profiles.wordpress.org/wetah/)
 3.  [July 30, 2024](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/#comment-8081)
 4.  Clickable cards gotta be the one block style I register every theme that I use…
     is there any reason why we cannot add link to group or cover blocks?
 5.  [Reply](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/?replytocom=8081#respond)
 6.   a.  ![Matt Knighton Avatar](https://secure.gravatar.com/avatar/3ebb22e723efa8a0b9ea9079569a1737d954d513b988c19dc45cb12ec8485a89?
          s=40&d=identicon&r=g)
      b.  [Matt Knighton](https://profiles.wordpress.org/mrkdevelopment/)
      c.  [July 30, 2024](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/#comment-8087)
      d.  I agree. Having a clickable card is a very common pattern in web development.
          Making a card block do this by default along with the animation as a default
          block would be a very good idea.
      e.  As the grid moves forward, making a card for use within the grid and having 
          some responsive control would be highly effective.
      f.  This would make bento boxes and other layouts possible with rules, without needing
          to resort to coding for every block layout.
      g.  [Reply](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/?replytocom=8087#respond)
      h.  ![Damon Cook Avatar](https://secure.gravatar.com/avatar/4dfad80d8f9d884b2c7c39d304c339b2ae573d178e2e5ec3e9150299b25fe744?
          s=40&d=identicon&r=g)
      i.  [Damon Cook](https://profiles.wordpress.org/colorful-tones/)
      j.  [July 31, 2024](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/#comment-8106)
      k.  > is there any reason why we cannot add link to group or cover blocks?
      l.  You can, but you must write custom code to extend the intended blocks. Offering
          this behavior to every kind of WordPress user poses a problem because users 
          need to be aware of semantic HTML usage and the context for which the blocks
          are used when linking a Group or Cover block.
      m.  [Reply](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/?replytocom=8106#respond)
      n.  ![Patrick Boehner Avatar](https://secure.gravatar.com/avatar/61f2610fbb9fc3b6d251d5208fbe117043b55c94afb3ba10aa9cc5d5de4452ed?
          s=40&d=identicon&r=g)
      o.  [Patrick Boehner](http://patrickboehner.com)
      p.  [August 24, 2024](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/#comment-10519)
      q.  One reason you may not want to do that ( add a wrapping link around ) is accessibility.
          If you added a link to wrap the entire group of content, then anytime anyone
          with a screen reader tabs into that group, they would hear all the text within
          that group read out to them as one long, continuous bit of text. That could 
          be a lot ( headings, categories, author meta, descriptions ).
      r.  If the block already has a link via a linked heading, then using a sudo element
          with some CSS to make the car clickable would be a better approach. Plus, you
          could still have it apply with a block style that targets linked headings within
          the block.
      s.  [Reply](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/?replytocom=10519#respond)
      t.   a. ![Mateus Machado Luna Avatar](https://secure.gravatar.com/avatar/da4333e9e520f56887af71e68da6b6bdffb445f8c722e657ff3abe782500c0a7?
              s=40&d=identicon&r=g)
           b. Mateus Machado Luna
           c. [August 25, 2024](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/#comment-10568)
           d. That is a really interesting argument, I haven’t considered that.
           e. I feel we’re all kinda trying to mimic the cards pattern from Mobile UIs and
              things are a bit different on the web. How does it work with screen readers?
              Because I’ve also heard before that adding one link around everything could
              be better than putting on each child element because then people start putting
              redundant links in every child element (heading, image, etc) just to make it
              more interactive.
           f. It’s curious that the pseudo-element solution sounds hacky but ends up being
              better, even thought it is not very intuitive for whoever is building the block.
           g. [Reply](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/?replytocom=10568#respond)
           h.  a. ![Damon Cook Avatar](https://secure.gravatar.com/avatar/4dfad80d8f9d884b2c7c39d304c339b2ae573d178e2e5ec3e9150299b25fe744?
                  s=40&d=identicon&r=g)
               b. [Damon Cook](https://profiles.wordpress.org/colorful-tones/)
               c. [August 26, 2024](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/#comment-10581)
               d. The cards UI has been around for a long time. The best approach is always 
                  to consider semantics and accessibility and progressively enhance the UI based
                  on context and needs. Here is an essential read from Heydon Pickering that
                  may help guide some decisions: [https://inclusive-components.design/cards/](https://inclusive-components.design/cards/)
               e. I hope it helps!
               f. [Reply](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/?replytocom=10581#respond)
               g.  a. ![Mateus Machado Luna Avatar](https://secure.gravatar.com/avatar/da4333e9e520f56887af71e68da6b6bdffb445f8c722e657ff3abe782500c0a7?
                      s=40&d=identicon&r=g)
                   b. [Mateus Machado Luna](https://profiles.wordpress.org/wetah/)
                   c. [August 26, 2024](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/#comment-10583)
                   d. Thanks, that is some great reading 🙂
 7.  ![Hans-Gerd Gerhards Avatar](https://secure.gravatar.com/avatar/ab62eb42e842b6adca897024806bbf5eaebe9896ac46f2d6823973e6d9d27d42?
     s=40&d=identicon&r=g)
 8.  [Hans-Gerd Gerhards](https://profiles.wordpress.org/hage/)
 9.  [July 31, 2024](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/#comment-8096)
 10. Thank you for this great contribution.
      However, I would like to point out a small
     typo: themeslug instead of themslug add_action( ‘init’, ‘themeslug_register_block_styles’);
 11. [Reply](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/?replytocom=8096#respond)
 12.  a. ![Damon Cook Avatar](https://secure.gravatar.com/avatar/4dfad80d8f9d884b2c7c39d304c339b2ae573d178e2e5ec3e9150299b25fe744?
         s=40&d=identicon&r=g)
      b. [Damon Cook](https://profiles.wordpress.org/colorful-tones/)
      c. [July 31, 2024](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/#comment-8105)
      d. Thanks Hans-Gerg for pointing out this discrepancy. I’ve updated the code. Much
         appreciated!
      e. [Reply](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/?replytocom=8105#respond)
 13. ![Trevor Robertson Avatar](https://secure.gravatar.com/avatar/dee401e1fe480a559f65112ceee2d7a9d2f95dfebde8d00eebc9697c6fe63a80?
     s=40&d=identicon&r=g)
 14. Trevor Robertson
 15. [August 16, 2024](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/#comment-8720)
 16. Love this idea to make the clickable cards with a bit of CSS. The only problem
     is when I use this pseudo-content trick it makes the heading text hard to edit.
     This doesn’t seem to happen for other, so it’s a bit odd. In my case, when I click
     on the heading in the editor the cursor is positioned at the end of the heading
     no matter where you click. As such the only way to edit the text is to delete 
     it all. 🙁
 17. Any ideas why that is happening? If not, or if anyone else has that issue here
     a fix… Remove the positioning for the pseudo content in the editor using an `editor.
     css` file. Note, you need to have a theme the enqueues editor specific CSS. In
     that file put something like this:
 18. body .is-style-card–interactive :where(.wp-block-heading) a::after {
      position:
     relative; }
 19. [Reply](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/?replytocom=8720#respond)
 20.  a. ![Damon Cook Avatar](https://secure.gravatar.com/avatar/4dfad80d8f9d884b2c7c39d304c339b2ae573d178e2e5ec3e9150299b25fe744?
         s=40&d=identicon&r=g)
      b. [Damon Cook](https://profiles.wordpress.org/colorful-tones/)
      c. [August 19, 2024](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/#comment-10149)
      d. > The only problem is when I use this pseudo-content trick it makes the heading
         text hard to edit.
      e. I’ve updated the GitHub repo and this article to address this. Here is the diff
         of CSS changes: [https://github.com/wptrainingteam/hover-reveal-card/commit/e941d851a38f988afda60509924d2df9440338cd](https://github.com/wptrainingteam/hover-reveal-card/commit/e941d851a38f988afda60509924d2df9440338cd)
      f. By utilizing the `:not(.has-child-selected)` we can assert editor-specific treatment
         to ensure a better editor experience, and you do not have to maintain two separate
         stylesheets. Thanks for pointing this out Trevor!
      g. [Reply](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/?replytocom=10149#respond)

### Leave a Reply 󠀁[Cancel reply](https://developer.wordpress.org/news/2024/07/building-a-card-layout-with-a-hover-reveal-effect/?output_format=md#respond)󠁿

Your email address will not be published. Required fields are marked *

Comment *

Name *

Email *

Website

 Save my name, email, and website in this browser for the next time I comment.

 Notify me of follow-up comments by email.

 Notify me of new posts by email.

Δ

## Have an idea for a new post?

### 󠀁[Learn how to contribute](https://developer.wordpress.org/news/how-to-contribute/)󠁿

Share your knowledge with fellow WordPress developers.

Search

### 󠀁[Review tips and guidelines](https://developer.wordpress.org/news/tips-and-guidelines-for-writers/)󠁿

Everything you need to know about writing for the Blog.

## Subscribe to the Blog

  Email Address

 Join 1,946 other subscribers

 * [About](https://wordpress.org/about/)
 * [News](https://wordpress.org/news/)
 * [Hosting](https://wordpress.org/hosting/)
 * [Privacy](https://wordpress.org/about/privacy/)

 * [Showcase](https://wordpress.org/showcase/)
 * [Themes](https://wordpress.org/themes/)
 * [Plugins](https://wordpress.org/plugins/)
 * [Patterns](https://wordpress.org/patterns/)

 * [Learn](https://learn.wordpress.org/)
 * [Documentation](https://wordpress.org/documentation/)
 * [Developers](https://developer.wordpress.org/)
 * [WordPress.tv ](https://wordpress.tv/)

 * [Get Involved](https://make.wordpress.org/)
 * [Events](https://events.wordpress.org/)
 * [Donate ](https://wordpressfoundation.org/donate/)
 * [Swag ](https://mercantile.wordpress.org/)

 * [WordPress.com ](https://wordpress.com/?ref=wporg-footer)
 * [Matt ](https://ma.tt/)
 * [bbPress ](https://bbpress.org/)
 * [BuddyPress ](https://buddypress.org/)

 The WordPress® trademark is the intellectual property of the WordPress Foundation.

 * [Visit our X (formerly Twitter) account](https://www.x.com/WordPress)
 * [Visit our Bluesky account](https://bsky.app/profile/wordpress.org)
 * [Visit our Mastodon account](https://mastodon.world/@WordPress)
 * [Visit our Threads account](https://www.threads.net/@wordpress)
 * [Visit our Facebook page](https://www.facebook.com/WordPress/)
 * [Visit our Instagram account](https://www.instagram.com/wordpress/)
 * [Visit our LinkedIn account](https://www.linkedin.com/company/wordpress)
 * [Visit our TikTok account](https://www.tiktok.com/@wordpress)
 * [Visit our YouTube channel](https://www.youtube.com/wordpress)
 * [Visit our Tumblr account](https://wordpress.tumblr.com/)