﻿
/* = = = = = = = = = = = = = = = = = datei animation.css = = = = = = = = = = = = = = = = = = = = = = = = = */

/* diese datei regelt die css-animationen  */


/* ############################################################ */
/* | Animation mit KEYFRAMES | */
/* EINBLENDEN */
/* ############################################################ */


@keyframes einblenden {

from {opacity:0}
to {opacity:1}

}



/* ############################################################ */
/* | CSS KEYFRAMES Animation |
/*   move  */
/*   hinweis: die kreisenden quadrate  */
/* ############################################################ */

/*
.icon-move i {display:block;
width:38rem;height:38rem;
POSITION:absolute;
top:50%;left:50%;
margin-top:-19rem;margin-left:-19rem;
font-size:4rem;
color:tomato;
text-shadow:0 0 1px white;
}


@keyframes move {
0%  {transform:  rotate(0deg) }
100%   {transform:  rotate(360deg) }
}

.icon-move .icon-1 {background:green;display:block;
ANIMATION:move  30s  infinite linear;animation-delay:2s;opacity:.5;
}

.icon-move  .icon-2 {background:red;
ANIMATION:move  60s  infinite linear;animation-delay:2s;opacity:.5;
}

.icon-move .icon-3 {background:gold;
ANIMATION:move 90s  infinite linear;animation-delay:2s;opacity:.5;
}

.icon-move .icon-4 {background:blue;
ANIMATION:move 120s  infinite linear;animation-delay:2s;opacity:.5;
}

/*


/* ############################################################ */
/* | Animation mit CSS Transition | */
/* hinweis: eventuelle animationen mit TRANSITION sind direkt in der datei datei MENUE.CSS bzw. FORMAT.CSS angelegt */
/* ############################################################ */





/* ############################################################ */
/* NACHFOLGEND NUR INFORMATION FÜR SIE */
/* Kurzer Überblick: ANIMATIONEN mit CSS Keyframes und CSS Transition */
/* ############################################################ */



/* Es gibt 2 Arten von CSS Animationen, nämlich

(1) CSS TRANSITION

(2) CSS ANIMATION (auch KEYFRAMES-ANIMATION genannt).

Bei einer einfachen Animation wie z.b Drehung um 360grad bei Mouseover (hover) ausgelöst,
kann man von aussen nicht erkennen, ob diese mit (1) oder (2) gemacht ist.

(1)=
- Erlaubt nur 2 Zustände, Anfangs- und Endzustand
- Braucht zur Auslösung einen sog. Trigger (z.b.hover oder focus), in der Regel also eine Mausberührung oder Touch.
- Kein Loop (zb. spiele 8x ab) ist NICHT erlaubt.

(2)=
- Erlaubt die 2 Zustände (bzw. die  sind Pflicht) wie bei 1), dann jedoch viele mögliche Zustände dazwischen, eben Keyframes, wie beim Film.
- Startet im Gegensatz zu 1) auch automatisch (z.b. Foto-Slideshow) beim Laden der Seite.
- Loop-Angabe ist ERLAUBT.

GEMEINSAM (1. und 2.) HABEN BEIDE :
- Zeitangabe für kompletten Durchlauf
- Zeitverzögernung (delay), also starte erst nach X sec
- Geschwindigkeitssteuerung , verschiedene, wie : // starte schnell, ende langsam  (ease-out) // starte langsam ende schnell (ease-in) // spiele gleichmässig ab (linear)   o.ä. */

/*  = = = = = = = = = = = = = = = = = = = = = = = = = = = */