{"id":457,"date":"2017-06-21T15:27:06","date_gmt":"2017-06-21T15:27:06","guid":{"rendered":"https:\/\/www.sebastianlenton.com\/?p=457"},"modified":"2017-06-21T15:27:06","modified_gmt":"2017-06-21T15:27:06","slug":"creating-css-animations-animation-delay","status":"publish","type":"post","link":"https:\/\/www.sebastianlenton.com\/2017\/06\/creating-css-animations-animation-delay\/","title":{"rendered":"Creating CSS Animations With animation-delay"},"content":{"rendered":"

The CSS animation-delay property is obviously used to delay the commencement of a CSS animation for a specified amount of time. But, like many CSS properties, there’s more than meets the eye… Using animation-delay you can create a variety of complex and beautiful pure CSS animations with ease, by applying it to a set of otherwise identical elements at varying time values.<\/p>\n

All of the following examples follow the same basic setup: a number of looping animated\u00a0elements are created, all of which are identical save for a unique numeric class which allows each element to be selected individually via CSS. Using this, a different animation-delay time can applied to each element, causing\u00a0each animation to run asynchronously\u00a0with the others to create various effects. I’ll go into more detail\u00a0in the examples, below.
\n<\/p>\n

Basic Example: Loading Dots<\/h2>\n

See the Pen CSS animation-delay Basic Example: Loading Dots<\/a> by Sebastian Lenton (@sebastianlenton<\/a>) on CodePen<\/a>.<\/p>\n