From 7bfd67ab552d795fcca3a964eb56e0407889fa83 Mon Sep 17 00:00:00 2001 From: structix Date: Thu, 9 May 2019 09:40:27 +0200 Subject: [PATCH] update --- uebung2/strasse.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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