Tutorial on building a "hover reveal" pattern #203
Replies: 3 comments
-
Linking to the tree in my personal repo where I last used this solution so that I'll have it for reference: https://github.com/x3p0-dev/x3p0-ideas/tree/f9c7f58f16846f9db3f08443cdcedc9a5769f1e4 |
Beta Was this translation helpful? Give feedback.
-
Topic was approved and the discussion is locked. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the great discussion and ideas here. A new piece has been published to cover this topic. Please let me know what y'all think. https://developer.wordpress.org/news/2024/07/30/building-a-card-layout-with-a-hover-reveal-effect/ |
Beta Was this translation helpful? Give feedback.
-
There's been a lot of discussion around building a specific layout with the block editor. Specifically, something like this (shown in a hover card style):
This is a pretty popular web design pattern, and it'd be great to show how it's possible with the block editor and can be shipped in a theme as a pattern.
Some of the community discussion and responses:
Responses to my tweet (last link above) have been overwhelmingly positive and ask for a tutorial. Thus, this proposal.
The Proposal
Write a tutorial that covers a lot of ground that is geared toward theme creators. This would be:
The Code
I've done some preliminary code work and am just backing it up here. Note: some of the below will have classes and such from my personal theme, so it'll need to be translated to TT4.
assets/css/blocks/core/columns.scss
:assets/css/blocks/core/cover.scss
:patterns/hero-cards.php
:Beta Was this translation helpful? Give feedback.
All reactions