diff --git a/uebung2/strasse.html b/uebung2/strasse.html index 6a7290e..b037be8 100644 --- a/uebung2/strasse.html +++ b/uebung2/strasse.html @@ -31,6 +31,16 @@ } } + @keyframes fahren_links { + 0% { + left: 100%; + } + + 100% { + left: -40%; + } + } + .delay { animation-delay: 2s; animation-direction: reverse; @@ -44,11 +54,19 @@ //transform: scaleX(-1); z-index: 1; //weiter vorne/hinten } + + .righttoleft { + animation: fahren_links 10s linear infinite; + bottom: -5%; + left: -40% + transform: scaleX(-1); + z-index: 0; //weiter vorne/hinten + } - +