Bonjour

Je suis en train de découvrir les propriétés d'animation de css3.
j'essaye basiquement de faire bouger des carrés d'un point a vers un point b, jusque là tout va bien.
Mais j'essaye que les carrés s'arrêtent à 100%, mais ils reviennent toujours à la position de départ. comment rester à la position de 100%
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<style>
@keyframes anim{
	0%{
		left:10px;
	}
	50%{
		left:400px; 
		background: rgba(12,120,12,0.5);
		transform: rotate(720deg);
		-webkit-transform: rotate(720deg);
	}
	100%{
		left:450px;
	}
}
 
@-webkit-keyframes anim{
	0%{
		left:10px;
 
	}
	50%{
		left:400px; 
		background: rgba(12,120,12,0.5);
		transform: rotate(180deg);
		-webkit-transform: rotate(720deg);
 
	}
	100%{
		left:450px;
 
	}
 
}
@-moz-keyframes anim{
	0%{
		left:10px;
 
	}
	50%{
		left:400px; 
		background: rgba(12,120,12,0.5);
		transform: rotate(720deg);
	}
	100%{
		left:450px;
		background: rgba(255,102,0,1)
 
	}
 
}
#bloc{
	width:200px;
	height:200px;
	background:red;
	position:absolute;
	left:0;
	right:0;
	animation-name:anim;
	animation-duration:2s;
	animation-iteration-count:2;
	-webkit-animation-name:anim;
	-webkit-animation-duration:2s;
	-webkit-animation-iteration-count:1;