5 Unbreakable Rules for UI Animation on the Web

  • By Nick Babich
  • 19 Jul, 2017
Transitions are a powerful way to communicate a change in a user interface. They can be used in apps to help offload a lot of the cognitive work into the visual cortex: they help transport users between navigational contexts, explain changes in the arrangement of elements on a screen, and reinforce element hierarchy. Consequently they […]
Successful animated transition possesses the following five characteristics:

1. Good UI Animation is Natural

State changes in UI often involve hard cuts by default, which can make them difficult to follow. In the real world, most things don’t just appear or disappear immediately. When something has two or more states, then changes between states will be much easier for users to understand if the transitions are animated instead of being instantaneous. Let’s look at an example below where the user selects an item in a list to zoom into its detailed view. During expansion, the small card moves in an arc towards its destination as it expands into a larger card. This movement is inspired by the real world forces.

2. Effective UI Animation is Staged

A well-staged animated transition guides your user’s attention and clarifies the change of states. This characteristic is directly related to the user focus and continuity. A good transition helps direct user’s focus to the right spot at the right time, it puts emphasis on the right elements depending on what the objective is. In the example below, the floating action button (FAB) transforms into header navigation elements comprised of three buttons. The first-time user cannot really predict an interaction that is about to happen, but a properly animated transition helps the user stay oriented and not feel that content has suddenly changed. This transition helps guide the user to the next step of an interaction.

3. The Best UI Animations Are Associative

Transitions should illustrate how elements are connected. Good transitions associate newly created surfaces to the element or action that creates them. The logic behind associative connection is to help the user comprehend the change that has just happened in the view’s layout and what has triggered the change.
Below you can see two examples of a layer transition. In the first example, the new layer appears far away from the touch point that triggered it, which breaks its relationship with the input method.
In the second example, the new layer appears right from the touch point. Thus tying the element to the point of touch.
Another example can be found in Mac OS which uses an animated transition when minimising a window. This animation connects the first state with the second state.

4. Popular UI Animation is Quick

If there’s only one principle of animation you care about it should definitely be timing. Timing is arguably one of the most important considerations when designing transitions. The animation should be quick and precise, with little or no lag time between the user’s initiating action and the beginning of the animation. Also, a user doesn’t have to wait for the animation to finish. In example below, slow animation creates unnecessary lag and lengthens the duration.
When elements move between states, the movement should be fast enough that it doesn’t cause any waiting, but slow enough that the transition can be understood. For an animation to effectively convey a cause-and-effect relationship between UI elements, the effect must begin within 0.1 seconds of the initial user action to maintain the feeling of direct manipulation. Try to keep animation duration at or under 300ms as fast transitions waste less of the users’ time. Test it with your users to see what is tolerable.

5. The Best UI Animation is Clear

It’s a common mistake to overload UIs with animations or to create too complex interactions. Too much change in a user interface can leave a user disoriented and it takes time to recover from. Remember that every motion on the screen attracts attention, so too much animation at the same time creates chaos.
Transitions should avoid doing too much at once because they can get confusing when multiple items need to move in different directions. Remember, less is more with regard to animation and transitions in particular. Anything that if removed would make a cleaner UI is almost certainly a good idea. When a surface changes shape and size, you have to maintain a clear path to the next view. Complex transitions should keep a single element visible. This helps keep the user oriented.

Transitions and Accessibility

Since transitions are about visual communication, they by default are not accessible by users with visual impairments. You should provide alternate content for this group of users. webacessibility.com ’s best practices for animation offers suggestions on when to provide alternate content for assistive technology.

Conclusion

When designing transitions, focus only on the practical things they do for the user. Whether your app or site is fun and playful or serious and straightforward, using meaningful transitions can help you provide a clear and quick cohesive experience.

Latest News

By Rob Johnson 09 Oct, 2017

The internet is such a big part of all our lives, it’s hard to remember a time when it didn’t exist. But in reality it only came into being as we now know it in 1991. The Internet cannot be attributed in its entirety to any one single person or organisation, but rather a collaboration that evolved over time and had many contributors.

The idea of a secure way of worldwide communication was first mooted by the US Government in the 1950s in response to the Cold War and the increasing security threat from the Soviet Union. After the USSR launched the world’s first manmade satellite in October 1957, the USA realised that something needed to be done. Although Sputnik was far from an unmitigated success, it did send shockwaves through the West and concentrated the minds of the most talented Western scientists and engineers.

Over the next few years, the US began to take scientific research and development much more seriously, adding various science-based courses to the schools curriculum and awarding government grants to scientific institutions. They formed NASA (the National Aeronautics and Space Administration) and ARPA (the Advanced Research Projects Agency) who were tasked with the development of space technologies such as weapons and computers.

By Rob Johnson 08 Sep, 2017

Have you ever wondered why your website doesn’t seem to attract as many people as your competitors’?

It’s actually far simpler than you think to create a website that will become a successful marketing tool for your business. Whatever business you’re in, everyone should have an online presence. But all too often business owners think of a website as just something that they think they should have rather than as the extremely effective marketing tool it should be.

It’s much easier than you think to get a website up and running and attracting visitors and there are many simple strategies you can implement that a) don’t cost the earth and b) don’t require a degree in marketing to understand. I have listed a few of them below to get you started…

1.  Don’t copy and paste your print material

Don’t simply copy your print marketing material. Writing for your website is completely different and is actually far easier than you think. Your visitors don’t want to sit and read a novel, they want clear and concise information that will draw them in and ultimately prompt them to carry out whatever it is you want them to do i.e. sign up to a newsletter, buy your products or make a booking

By Rob Johnson 30 Aug, 2017

One issue that we found and got many repeated complaints from clients that Magento takes more to load – essentially, it’s very resource consuming and has slow download speed. Major search engines like Google highly recommend and promote fast loading websites.

There are few tips and actions that our experienced Magento developers at Red Rocket have applied and we’d like to share that if it helps.

So, where do you start with speeding up Magentousing .Htaccess file? The first thing you need to do is to analyse the overall speed of your Magento page, before any changes have been made. We would recommend to use three tools which can be found below:

  • Google PageSpeed Insights
  • WebPageTest
  • GTmetrix

Speed Up Magento via Your .htaccess File

Step 1: Gzip Compression For Magento

By compressing this page with GZIP, 76.1% bandwidth was saved.  

You will need to enable Gzip Compression for Magento. To enable GzipCompression simple find add below code in your root .htaccess.

< ifModulemod_gzip.c> mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_includefile.(html?|txt|css|js|php|pl)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_excluderspheader ^Content-Encoding:.*gzip.* < /ifModule >


Step 2: (optional) Compressing CSS and JavaScript files

Next we want to compress items such as CSS and javascript etc. Simply add the following lines of text directly into the htaccess file.

## compress text, html, javascript, css, xml: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript # Or, compress certain file types by extension: < files *.html> SetOutputFilter DEFLATE < /files>


Step 3: Leverage Browser Caching and Expires Headers

The third thing to do is Leverage Browser Caching and Expires Headers. This piece of code can make a huge difference and will reduce the number of HTTP request, which is a huge benefit for any returning visitors to your website.

< IfModulemod_expires.c> # Enable expirations ExpiresActive On # Default directive ExpiresDefault "access plus 1 month" # My favicon ExpiresByType image/x-icon "access plus 1 year? # Images ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" # CSS ExpiresByType text/css "access 1 month? # Javascript ExpiresByType application/javascript "access plus 1 year" < /IfModule>


Step 4: Enable Output Compression

This section will essentially turn on the module called apache mod_deflate, which will compress css, text, and javascript before it is sent to the browser. This will considerably reduce the download size. In order to enable, uncomment the appropriate lines so that it looks like the below:

## enable apache served files compression ## http://developer.yahoo.com/performance/rules.html#gzip # Insert filter on all content SetOutputFilter DEFLATE # Insert filter on selected content types only AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript # Netscape 4.x has some problems... BrowserMatch ^Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have some more problems BrowserMatch ^Mozilla/4\.0[678] no-gzip # MSIE masquerades as Netscape, but it is fine BrowserMatch \bMSIE !no-gzip !gzip-only-text/html # Don't compress images SetEnvIfNoCaseRequest_URI\.(?:gif|jpe?g|png)$ no-gzipdont-vary # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary


Step 5: Enable Expires Headers

Normally browsers use Expires headers to checkfor how long a page component can be cached. Components that are static such as images, should have headers like far-future expires, but essentially, every page components should have expires headers. To enable this feature, simply uncomment the appropriate line and write “ExpiresActiveOn” just above it. Check below:

## Add default Expires header ## http://developer.yahoo.com/performance/rules.html#expires ExpiresActive On ExpiresDefault "access plus 1 year"


Step 6: Disable ETags

ETags are used by browsers to check and validate cached components across subsequent visits. They can slow down a site served from a cluster if the cluster hasn’t implemented them properly. It is best to just turn them off as follow

## If running in cluster environment, uncomment this ## http://developer.yahoo.com/performance/rules.html#etags FileETag none


By Inessa Brown 21 Jul, 2017
Have you ever encountered a website with confusing navigation? Been sent down the wrong path by misleading labels? Or needed your best detective skills to find a particular piece of content? It’s frustrating, isn’t it? What can companies do to ensure that users can find what they are looking for on a website? Usability testing […]
By Ben Moss 20 Jul, 2017
Google’s minimal search page has consistently been heralded as a minimalist masterpiece since it first appeared in 1996. It’s been argued by numerous designers—myself included—that it was the perception of Google as a ‘pure’ unadulterated search was more central to Google’s rise and eventual dominance, than the merits of its (in)famous algorithm. So it’s something […]
By Ezequiel Bruni 20 Jul, 2017
When I go to any website, I’m looking for something. I may want to buy a product, or find information, or browse random memes, but whatever it is, I have a goal in mind. That goal could even be subconscious, but it’s there. Human beings never do anything without a reason. Whether or not they […]
By _dm_templates 20 Jul, 2017
Red Rocket are pleased to announce the launch of the new website for Gillian Allard the winner of Sky Arts Master Of Photography award for 2017. The website is built on our platform and allows Gillian to update all parts of the website herself.
By Nick Babich 19 Jul, 2017
Transitions are a powerful way to communicate a change in a user interface. They can be used in apps to help offload a lot of the cognitive work into the visual cortex: they help transport users between navigational contexts, explain changes in the arrangement of elements on a screen, and reinforce element hierarchy. Consequently they […]
By Mickey Aharony 18 Jul, 2017
Designing fun, visually appealing party banners can be a complicated task if you don’t have enough graphic design experience or know how to use image editing software, such as Photoshop or Sketch. Buying and installing an image editing software, installing custom fonts, designing the graphics and figuring out how to apply a text overlay can […]
By _dm_templates 18 Jul, 2017

Joan is applying for a small loan on all-online-loanzzz.com. She’s becoming frustrated with the number of financial-disclosure forms she has to fill out. She’s thinking about visiting her local bank to ask for a loan instead.

While waiting for a page to load, the application presents a cartoon image of a person wearing a business suit sitting in a jail cell. The image caption says, “Hey, everyone hates disclosures. We know you do, too. We’re doing our best to keep everyone out of jail. Please bear with us for a few more clicks. You won’t regret it, and our loan officers will stay out of jail.” Joan smirks at the image. She might not appreciate the number of forms she has to complete, but she understands the serious nature of applying for a loan.

Humor is an important aspect of life. Researchers find  humor has many positive benefits . It can reduce stress, increase psychological well being and increase tolerance for pain. Most of us have had experiences in which we’ve used humor to lighten a mood or cheer someone up. Humor is integral and inherent to human relationships.

You can use humor in your design (both in the process and the product) to create a positive user experience. We want to develop positive relationships with our users — humor can help make that happen.

But how do I do this?, you might ask. Do I need to be a comedian? Should I format all of my FAQs as knock-knock jokes? The answer is no to both of those questions. You can incorporate humor in your design, maintain your brand identity and not look like you are trying too hard in the process.


More Posts
Share by: