Do it yourself: CSS für Profil und Blog
26.07.2012 um 20:28Header mit runden Ecken in bunt und mit Farbe.
.header {
border: 2px solid #003300;
border-radius:10px;
animation-name:switchcolor;
animation-duration:5s;
animation-timing-function:linear;
animation-delay:2s;
animation-iteration-count:infinite;
animation-direction:alternate;
animation-play-state:running;
-moz-animation-name:switchcolor;
-moz-animation-duration:5s;
-moz-animation-timing-function:linear;
-moz-animation-delay:2s;
-moz-animation-iteration-count:infinite;
-moz-animation-direction:alternate;
-moz-animation-play-state:running;
-webkit-animation-name:switchcolor;
-webkit-animation-duration:5s;
-webkit-animation-timing-function:linear;
-webkit-animation-delay:2s;
-webkit-animation-iteration-count:infinite;
-webkit-animation-direction:alternate;
-webkit-animation-play-state:running;
-o-animation-name:switchcolor;
-o-animation-duration:5s;
-o-animation-timing-function:linear;
-o-animation-delay:2s;
-o-animation-iteration-count:infinite;
-o-animation-direction:alternate;
-o-animation-play-state:running;
-ms-animation-name:switchcolor;
-ms-animation-duration:5s;
-ms-animation-timing-function:linear;
-ms-animation-delay:2s;
-ms-animation-iteration-count:infinite;
-ms-animation-direction:alternate;
-ms-animation-play-state:running;
}
@-moz-keyframes switchcolor
{
0% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33, 0px 0px 50px #ffffff;}
50% {border:1px solid #66ff33;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #000000;}
100% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #ffffff;}
}
@-webkit-keyframes switchcolor
{
0% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33, 0px 0px 50px #ffffff;}
50% {border:1px solid #66ff33;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #000000;}
100% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #ffffff;}
}
@-o-keyframes switchcolor
{
0% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33, 0px 0px 50px #ffffff;}
50% {border:1px solid #66ff33;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #000000;}
100% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #ffffff;}
}
@-ms-keyframes switchcolor
{
0% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33, 0px 0px 50px #ffffff;}
50% {border:1px solid #66ff33;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #000000;}
100% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #ffffff;}
}
@keyframes switchcolor
{
0% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33, 0px 0px 50px #ffffff;}
50% {border:1px solid #66ff33;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #000000;}
100% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #ffffff;}
}
.header {
border: 2px solid #003300;
border-radius:10px;
animation-name:switchcolor;
animation-duration:5s;
animation-timing-function:linear;
animation-delay:2s;
animation-iteration-count:infinite;
animation-direction:alternate;
animation-play-state:running;
-moz-animation-name:switchcolor;
-moz-animation-duration:5s;
-moz-animation-timing-function:linear;
-moz-animation-delay:2s;
-moz-animation-iteration-count:infinite;
-moz-animation-direction:alternate;
-moz-animation-play-state:running;
-webkit-animation-name:switchcolor;
-webkit-animation-duration:5s;
-webkit-animation-timing-function:linear;
-webkit-animation-delay:2s;
-webkit-animation-iteration-count:infinite;
-webkit-animation-direction:alternate;
-webkit-animation-play-state:running;
-o-animation-name:switchcolor;
-o-animation-duration:5s;
-o-animation-timing-function:linear;
-o-animation-delay:2s;
-o-animation-iteration-count:infinite;
-o-animation-direction:alternate;
-o-animation-play-state:running;
-ms-animation-name:switchcolor;
-ms-animation-duration:5s;
-ms-animation-timing-function:linear;
-ms-animation-delay:2s;
-ms-animation-iteration-count:infinite;
-ms-animation-direction:alternate;
-ms-animation-play-state:running;
}
@-moz-keyframes switchcolor
{
0% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33, 0px 0px 50px #ffffff;}
50% {border:1px solid #66ff33;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #000000;}
100% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #ffffff;}
}
@-webkit-keyframes switchcolor
{
0% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33, 0px 0px 50px #ffffff;}
50% {border:1px solid #66ff33;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #000000;}
100% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #ffffff;}
}
@-o-keyframes switchcolor
{
0% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33, 0px 0px 50px #ffffff;}
50% {border:1px solid #66ff33;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #000000;}
100% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #ffffff;}
}
@-ms-keyframes switchcolor
{
0% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33, 0px 0px 50px #ffffff;}
50% {border:1px solid #66ff33;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #000000;}
100% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #ffffff;}
}
@keyframes switchcolor
{
0% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33, 0px 0px 50px #ffffff;}
50% {border:1px solid #66ff33;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #000000;}
100% {border:1px solid #009900;box-shadow:0px 0px 60px #66ff33,0px 0px 50px #ffffff;}
}