diff --git a/uebung2/strasse.html b/uebung2/strasse.html index da96e9f..b995c8e 100644 --- a/uebung2/strasse.html +++ b/uebung2/strasse.html @@ -14,16 +14,6 @@ overflow: hidden; } - img { - width: 40% - height: 40%; - position: absolute; - bottom: -5%; - animation: fahren 10s linear infinite; - transform: scaleX(-1); - z-index: 1; //weiter vorne/hinten - } - @keyframe fahren { 0% { left: -40%; @@ -38,6 +28,17 @@ animation-delay: 2s; animation-direction: reverse; } + + + img { + width: 40% + height: 40%; + position: absolute; + bottom: -5%; + animation: fahren 10s linear infinite; + transform: scaleX(-1); + z-index: 1; //weiter vorne/hinten + }