11

Letter Shuffle Animation for a Menu

 2 years ago
source link: https://tympanus.net/codrops/2022/03/23/letter-shuffle-animation-for-a-menu/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Letter Shuffle Animation for a Menu

A little animation for a big menu where the letters of a word shuffle to become the first letter of each menu item.

By Mary Lou in Playground on March 23, 2022

From our sponsor:

Today I’d like to share a little menu animation with you. It’s an experimental play with letters that are stacked vertically and that animate into a menu by shuffling its letters. The resting letters come in with a slight rotation.

Nothing special, really, but I had to get it out of my head and into a demo 🙂  Hope it gives you some inspiration though!

So the page layout looks as follows:

Screen-Shot-2022-03-23-at-09.15.54-800x500.png

When clicking on the menu icon on the left, the visible letters will shuffle and reveal the final first letter for each of the menu items:

Screen-Shot-2022-03-23-at-09.10.50-800x500.png

Let’s see how it all looks in a flow:

Note that this is somewhat experimental and only suited for monospace fonts where we have a fixed/equal width for each letter (unless you’re up for some funky layout, then try it with other fonts). Firefox doesn’t play very nicely here because apparently the line-height is not equally interpreted in some browsers. There might be some tinkering needed with paddings/margins to make it fit properly.

Hope you enjoy this and thanks for checking by!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK