CSS - właściwości animation-play-state
animation-play-state: paused
kod |
wynik kodu |
<!DOCTYPE html>
<html>
<head>
<title>programowanie - CSS</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
<meta http-equiv="Content-Language" content="pl">
<link rel="Stylesheet" type="text/css" href="style.css" />
<style type="text/css">
.box {
width: 200px;
height: 93px;
margin: 50px;
background: url("grafika/auto.jpg") no-repeat;
position: relative;
animation-name: moveit;
animation-duration: 10s;
animation-play-state: paused;
}
@keyframes moveit {
from {left: 0%;}
to {left: 60%;}
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>
|
|
animation-play-state: running
kod |
wynik kodu |
<!DOCTYPE html>
<html>
<head>
<title>programowanie - CSS</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
<meta http-equiv="Content-Language" content="pl">
<link rel="Stylesheet" type="text/css" href="style.css" />
<style type="text/css">
.box {
width: 200px;
height: 93px;
margin: 50px;
background: url("grafika/auto.jpg") no-repeat;
position: relative;
animation-name: moveit;
animation-duration: 10s;
animation-play-state: running;
}
@keyframes moveit {
from {left: 0%;}
to {left: 60%;}
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>
|
|