HTML exercises

CSS Properties: How to animation-delay use, then start the animation?

Go to Exercise page


HTML Code:

<!DOCTYPE html>
<meta charset="utf-8" />
<title>How to animation-delay use, then start the animation</title>
<div class="animation">
<div class="w3r">
w3resource Tutorial
<style type="text/css">
div {
width: 100px;
height: 100px;
background: #33FFFF;
position: relative;
-webkit-animation: move 5s infinite; /* Chrome, Safari, Opera */
-webkit-animation-delay: 5s; /* Chrome, Safari, Opera */
animation: move 5s infinite;
animation-delay: 5s;
/* Chrome, Safari, Opera */
@-webkit-keyframes move {
from {left: 0px;}
to {left: 100px;}
@keyframes move {
from {left: 0px;}
to {left: 100px;}

Live Demo:

See the Pen animation-delay-answer by w3resource (@w3resource) on CodePen.

See the solution in the browser

Supported browser

Firefox logo Chrome logo Opera logo Safari logo Internet Explorer logo
Yes Yes Yes Yes No

Go to Exercise page

What is the difficulty level of this exercise?

New Content: Composer: Dependency manager for PHP, R Programming