diff --git a/uebung2/strasse.html b/uebung2/strasse.html index dd933be..83fe6e5 100644 --- a/uebung2/strasse.html +++ b/uebung2/strasse.html @@ -14,6 +14,13 @@ overflow: hidden; } + img { + width: 40% + height: 40%; + position: absolute; + + } + @keyframes fahren { 0% { left: -40%; @@ -31,10 +38,7 @@ .lefttoright { - width: 40% - height: 40%; - position: absolute; - bottom: -5%; + bottom: -5%; animation: fahren 10s linear infinite; transform: scaleX(-1); z-index: 1; //weiter vorne/hinten