7 Simple Rules for Creating Elegant UI Interactions

Share this article

‘Interaction design’ is one of those newish buzzwords that has become strongly tied into the UX design process. In 2015 it’s no longer enough for interface elements to instantly switch between two static states. Today words like ‘slide’ and ‘bounce’ and ‘rebound’ have come into the conversation on how good user interfaces work.

However in the world of interactions – as is the case with expensive watches – ‘fancy‘ does not not necessarily mean ‘elegant‘. While we may be curious about the complexity of the fancy watch below, I suspect that very few of us would want to actually wear it. Natural elegance almost always triumphs over decoration in our interface design too.

Two watches: Fancy vs elegant

If you are creative like me, it’s easy to be tempted to create fancy-flying interactions just to make your website feel more modern and engaging. Of course, in our hearts we know this approach can be one of the surest ways to screw up your entire user experience.

As such, I’ve found that it’s important to focus on animations that are so smooth and easy on the eye that our users barely notices them. That’s when our animations move out of the spotlight and instead support our what our user is trying to do.

So, why does that matter?

Why does Apple spend so much time and money on packaging that usually gets quickly thrown into the recycling bin? Why do luxury car companies tune the sound of their doors closing?

It’s because we find that minor, seemingly unimportant details can have an disproportionate impact on great design, and can lift a UX from “fine” to “awesome”.

Enriching your website with beautifully designed ‘micro-interactions’ not only makes it more usable, but can also trigger positive emotional feelings in your users (like opening that Apple box). Experiencing such emotions means more dopamine is consumed and this literally helps them to become more addicted to your website/application.

So, what defines a ‘micro-interaction’?

When a user makes an input (e.g. clicks, drags, types something) your website reacts – well, that’s an interaction. This is a way for users to communicate with your website, so it’s part of a dialogue. When designing a flow of how users behave on your website, you always have a few different types of interaction you can use:

  1. Navigation interactions: This is when a user ends up in a totally new page/state.
  2. Modal interactions: This is when the current state of website is frozen and some temporary state is displayed on top of it (e.g. “lightbox” gallery or confirmation dialog.)
  3. Micro-interactions: This is when you want only a single element within a page to react to user input – for instance, to show a drop-down menu or reveal more details of a product.

How do we make these micro-interaction elegant?

A website should feel like a concert of interactive interface elements working together to impress you. Elegance is the key criteria to make such impression. Though it’s very hard to define elegance in purely technical terms, we can use some logic hacks that helps us to create elegant interactions.

Key Rule #1 – No teleportation

The idea is simple – always use a transition when you are changing an element on page. That means there shouldn’t be any instant snap-cuts on your GUI. Every appearing, disappearing or transforming element should be implemented with easing or/and animation.

This helps users to focus their vision on the areas you want them to. And of course this creates a feeling of elegance and consistent flow.

no teleport

Rule #2: Toggles are better than buttons

At home you would usually use the same switch to turn lights both on and off. The same concept applies to toggle controls on your site. If a control toggle triggers a new state of a given element – that same control should rollback that state.

Furthermore, according to Fitts’ law such controls should require close to zero effort to rapidly switch between on and off states.

Trigger placement

Rule #3: Triggers should be nearby

Transitions always need some kind of trigger. At the time of the interaction, our user is usually focused on that trigger element. This means it’s necessary that the transition begins on or very near the trigger. If you start a transition too far away from your trigger element, user could easily just miss it and the flow will break.

Furthermore a transition should generally propagate from the trigger to the position where you want to focus users’ attention. The trick is simple – you lead users eye from trigger to the spot where he should make his next move. This way the user won’t lose their focus and will be right on track where you want them.

Transition origin and direction

Rule #4: Use natural transition timing

Transition timings define how long our animation is playing. The major problem with timing is that there is no magic wand to get it right. If you make your transition too long, it will create a pain point for users repeating the same interaction often or rapidly.

On the other hand, if it is too short it will feel unnatural – or the user may miss it entirely. Unfortunately, all you can do is to evaluate the transition by your eagle eye and gut feel. The best advice I’ve found is not to give all your transitions the same timing. Just play around and find the right balance. Also note that even a difference of 0.05s matters.

Natural transition timing

Rule #5: Transition rollbacks should never break the users’ sense of control

Sometimes it happens that users change their mind quickly, in the middle of transition. In these cases, transition responsiveness is critical. If a user cancels the last interaction (e.g. clicks trigger button twice) the animation of transition should be instantly reversed. If it is not, our user instantly loses their feeling of control. Furthermore you are making your user think that they did something wrong.

Transition rollback

Rule #6: Always auto-focus on the next action in a series

This tip is targeted at interactions where users perform a sequence of actions. When designing such a sequence, you should always avoid any unnecessary interactions and always set focus on the next control in the sequence. The most basic example of this kind of interaction is an [edit] button that opens a form and magically focuses on the first field so that user does not need to click it manually.

Focus

Rule #7: Always tell the user when you are done

Users should always be able to recognize when an interaction is complete. If your interaction does not change on some obvious way on completion, you should always consider implementing some kind of visual feedback that tells users “Hey you, it’s done!”. In situations where you skip that, users tend to repeat the same action multiple times, thus making a mistake and possibly even corrupting something precious.

Give Feedback

Applying these tips

In short, you can use these tips as cheat-sheet for implementing micro-interactions on your website. It should help you design the details of interaction before you implement them.

However, there is a good chance that you won’t make them perfect first time. In that case you will need to tweak them according to your own situation – so be prepared to play around a little.

Aaaaand… there is just one final tip for you to take away. In general, the more your interactions surrender to the laws of real-world physics, the more they’ll feel natural and elegant.

Have animating fun!

Frequently Asked Questions on Creating Elegant UI Interactions

What are some key principles to consider when designing UI interactions?

When designing UI interactions, it’s crucial to keep the user in mind. The interaction should be intuitive and easy to understand. Consistency is also key – the user should not have to guess how to interact with your interface. The interaction should also provide feedback to the user, letting them know that their action has been recognized and is being processed. Lastly, the interaction should be efficient, minimizing the number of steps the user has to take to achieve their goal.

How can I make my UI interactions more engaging?

To make your UI interactions more engaging, consider incorporating animations. Animations can make the interaction feel more dynamic and can also provide valuable feedback to the user. However, it’s important to use animations sparingly and not let them distract from the main task. Also, consider using sound or haptic feedback to enhance the interaction.

What are some common mistakes to avoid when designing UI interactions?

Some common mistakes to avoid when designing UI interactions include overcomplicating the interaction, not providing enough feedback to the user, and not being consistent. Overcomplicated interactions can confuse the user and make your interface difficult to use. Lack of feedback can leave the user unsure if their action has been recognized. Inconsistency can make your interface unpredictable and frustrating to use.

How can I test the effectiveness of my UI interactions?

You can test the effectiveness of your UI interactions through user testing. This involves observing users as they interact with your interface and gathering feedback. You can also use analytics tools to track how users interact with your interface and identify any areas of difficulty or confusion.

How can I improve the accessibility of my UI interactions?

To improve the accessibility of your UI interactions, consider how users with different abilities will interact with your interface. For example, make sure your interactions can be used with a keyboard for users who can’t use a mouse. Also, ensure your interactions are compatible with screen readers and other assistive technologies.

How can I incorporate storytelling into my UI interactions?

Storytelling can be incorporated into your UI interactions by creating a narrative around the user’s journey. This can be achieved through the use of animations, sound, and visual cues that guide the user through the interaction.

What are some resources for learning more about UI interactions?

There are many resources available for learning more about UI interactions. Some popular ones include online courses, blogs, and books on the subject. You can also learn a lot by studying the UI interactions of popular apps and websites.

How important is speed in UI interactions?

Speed is very important in UI interactions. Users expect interactions to be responsive and quick. Any delay can lead to frustration and may cause the user to abandon the task.

How can I use color to enhance my UI interactions?

Color can be used to enhance your UI interactions by drawing attention to important elements, indicating status, and providing feedback. However, it’s important to use color sparingly and consistently, and to consider color blindness in your design.

How can I keep up with trends in UI interactions?

To keep up with trends in UI interactions, it’s a good idea to follow industry blogs, attend design conferences, and join online communities of UI designers. You can also learn a lot by studying the UI interactions of new and popular apps and websites.

Petras BaukysPetras Baukys
View Author

Petras is an UX designer and Front-end developer passioned about creating user interfaces backed by science. He experiments with bleeding-edge front-end technologies and is obsessed with neurodesign. Currently works at Dragdis in Vilnius, Lithuania.

AlexWHuman-Computer Interactioninteraction designUI designuser experienceuser interface design
Share this article
Read Next
Get the freshest news and resources for developers, designers and digital creators in your inbox each week