Skip to content

A handful of artful block styles, created for WCUS 2021.

License

Notifications You must be signed in to change notification settings

kjellr/wcus-block-styles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WCUS Block Styles

Overview

This repo houses a demo plugin to show off a handful of artful block styles. These were showcased as part of a presentation called "Creative Use of Block Styles" at WordCamp US 2021.

Block Styles

1. Rotate (Image Block)

Endlessly rotates an image.

2. Jazz Cover (Image Block)

Applies an image mask and filter to any image block, mimicking a style from Blue Note jazz record covers. Animates on hover.

3. Photocopy (Image Block)

Applies a photocopy-like effect to any image.

4. Warped (Heading Block)

Applies a stretched, wavy effect to text, reminiscent of the warping that occurs if you move your paper around while photocopying.

5. Photocopy Collage (Gallery Block)

Arranges gallery items vertically, and masks each one as if it's on a torn piece of paper. Please note, this one is written for the refactored Gallery block that arrived in Gutenberg 11.4 and will be included in WordPress 5.9.

6. Shifted Baseline (Heading Block)

Applies a random(ish) pattern of vertical baseline ajustments to each individual letter in a heading block. The letters resolve back to their default positions on hover.

7. Shifted Baseline (Intense) (Heading Block)

Applies a random(ish) pattern of vertical and horizontal baseline ajustments to each individual letter in a heading block. The letters resolve back to their default positions on hover.

Bugs?

Yes, there are bugs! All of the styles here are just proof-of-concepts. With that in mind, please do feel free to file a bug report (or to provide a fix!). In additon, if you know of a better way to accomplish one of the block styles here, I'd absolutely love to hear about it!

More Resources

Questions?

Ping @kjellr on twitter or WordPress.org slack. You can also find me at kjellr.com.