wp-calypso icon indicating copy to clipboard operation
wp-calypso copied to clipboard

Pattern Assembler - CSS transitions for engagement

Open miksansegundo opened this issue 3 years ago • 1 comments

We could to add little CSS transitions when we show the pattern selector or when a pattern is added, deleted, or sorted to make the UI more engaging.

Some classic transitions are fade in/out, slide or scale. Here is a complete demo guide for reference.

For more complex transitions of React state, I see we previously used the dependency react-transition-group. A more modern approach is creating a custom hook @Automattic/ganon what do you think? I would love to hear your ideas and welcome contributions too.

Maybe we can add a third-party 1kb dependency called transition-hook . Looks fun!

Some UI actions that can be animated are:

  • mount preview placeholder
  • mount pattern list empty
  • hover the blue links to add patterns
  • hover pattern title to show icon buttons
  • hover icon buttons
  • transition from the pattern list to the pattern selector
  • transition back from the pattern selector after add/replace pattern
  • pattern added/replaced
  • pattern deleted
  • pattern moved up/down
  • others?

Screenshots for reference

Icon buttons Screen Shot 2565-09-16 at 15 06 50 Screen Shot 2565-09-16 at 15 09 26 Screen Shot 2565-09-16 at 15 08 14 Screen Shot 2565-09-16 at 15 07 37 Screen Shot 2565-09-16 at 15 07 17

Patterns list Pattern Selector
Screen Shot 2565-09-16 at 15 09 08 Screen Shot 2565-09-16 at 15 08 56

Related

Micro-interactions And Their Role in UX Design Micro-Interactions: a designer’s superpower

@SaxonF Let's have some fun!

miksansegundo avatar Sep 16 '22 09:09 miksansegundo

We have deployed the first iteration in https://github.com/Automattic/wp-calypso/pull/68028. I'll leave this issue open to address feedback from @SaxonF and continue adding more CSS transitions in follow-up PRs.

miksansegundo avatar Sep 22 '22 01:09 miksansegundo