{"id":1153,"date":"2018-12-30T20:45:00","date_gmt":"2018-12-30T20:45:00","guid":{"rendered":"https:\/\/www.inspired-evolution.com\/blog\/?p=1153"},"modified":"2018-12-31T17:55:00","modified_gmt":"2018-12-31T17:55:00","slug":"css3-animation","status":"publish","type":"post","link":"https:\/\/www.inspired-evolution.com\/blog\/css3-animation\/","title":{"rendered":"CSS Animation and how to use it well in your website"},"content":{"rendered":"\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.inspired-evolution.com\/blog\/wp-content\/uploads\/2018\/12\/CSS3-Animation.png\" alt=\"CSS3 Animation\" width=\"250\" height=\"150\" class=\"alignleft size-full wp-image-1042\"><\/p>\n<p>With the progression of Cascading Style Sheets (or CSS) to include the ability to create animations, there are now a plethora of possibilities to create eye-catching visuals on your website and as we all know CSS animations rate very high in the \u201ccool\u201d factor when it comes to web development. Not only that but people love seeing movement and interactivity in digital format. With the right animation, you can accomplish a lot by telling a story which helps describe complex ideas better than text or a non-animated illustration could. Websites with animations can also entertain the visitor to the site longer than a site without animation.<\/p>\n\n\n\n<h2>The history of animating on websites and web applications<\/strong><\/h2>\n\n\n\n<p>Animation is not new to websites and web applications. Over\nthe years of the history of the web, Adobe Flash and Flex were once very\npopular for interactive animations as well as popular JavaScript libraries such\nas jQuery. As most people know Flash is not considered to be a good tool to use\nfor animation anymore unless you have no need to consider mobile devices such\nas cell phones and tablets, since Adobe is discontinuing Flash support in 2020.\njQuery has its place still and will continue to be widely used, but there are\nsome instances where you will simply want to use only CSS animation which\nconsist of transitions and animation using keyframes.<\/p>\n\n\n\n<p><h2>CSS Transitions and Animations<\/h2><\/p>\n\n\n\n<p>The main difference between CSS transitions and animations\nis a transition will go directly from state A to state B while with animations\nand keyframes you can have multiple steps and the animations are more complex.\nAn example of using transitions would be if you want a button to enlarge or\nchange color on hover or active or changing a hyperlink color on hover. Another\ndifference is animations can loop (play over and over) or just play once.&nbsp; A transition will occur on a mouse event such\nas a hover or tap on mobile.<\/p>\n\n\n\n<p><h2>CSS animation best practices<\/h2><\/p>\n\n\n\n<p>When it comes to CSS animations as a developer you should\nfollow the less is more principle. Animations are fun to create, especially\nwith CSS, but you should use animation sparingly to complement your design, and\nnot distract your audience from the task at hand. For example, if you sell a\nproduct on your website your goal is to ultimately get the visitor to add the\nproduct to a shopping cart, checkout and make the purchase. Other goals might\nbe to get the visitor to your site to fill out a form, call your business or\ndownload an informational PDF file. The animation on your website can help\nencourage these goals but if your visitors watch an animation on your website\nbut don\u2019t understand the message delivered by the animation then you basically\njust created a distraction without a positive result. Another mistake would be\nto have multiple animations going at once on your website which would not only\nconfuse the visitor but also might give them a headache! <\/p>\n\n\n\n<p>CSS Animations should explain something complex or tell la\nstory. It\u2019s really all about communication, after all. A picture can say a\nthousand words but may not be able to capture a visitor\u2019s attention or tell a\nstory like animation can.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the progression of Cascading Style Sheets (or CSS) to include the ability to create animations, there are now a plethora of possibilities to create eye-catching visuals on your website and as we all know CSS animations rate very high in the \u201ccool\u201d factor when it comes to web development. Not only that but people [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,61],"tags":[150],"class_list":["post-1153","post","type-post","status-publish","format-standard","hentry","category-technology","category-web-development","tag-css3-animation"],"_links":{"self":[{"href":"https:\/\/www.inspired-evolution.com\/blog\/wp-json\/wp\/v2\/posts\/1153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inspired-evolution.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inspired-evolution.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inspired-evolution.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inspired-evolution.com\/blog\/wp-json\/wp\/v2\/comments?post=1153"}],"version-history":[{"count":0,"href":"https:\/\/www.inspired-evolution.com\/blog\/wp-json\/wp\/v2\/posts\/1153\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inspired-evolution.com\/blog\/wp-json\/wp\/v2\/media?parent=1153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inspired-evolution.com\/blog\/wp-json\/wp\/v2\/categories?post=1153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inspired-evolution.com\/blog\/wp-json\/wp\/v2\/tags?post=1153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}