Plantilla:Proves Townie/proves.css

De la Viquipèdia, l'enciclopèdia lliure
.modes {
 margin-top: 1.5em;
 display: flex;
 justify-content: center;
 align-items: stretch;
 flex-wrap: wrap;
}

.mode {
 flex: 1 1 0;
 margin: 3px;
 position: relative;
 overflow: hidden;
 border-radius: 5px;
 box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
}

.mode-contingut {
 padding: 20px;
 padding-bottom: 50px;
 color: black;
}

.mode-descripcio {
 margin: 10px 0;
 line-height: 1.5em;
 color: #424242;
}

.mode-accio {
 font-size: 1.05em;
 line-height: 1.5em;
 position: absolute;
 bottom: 0;
 width: 100%;
 text-align: left;
 font-weight: bold;
 padding: 10px 0 10px 20px;
}

@keyframes cauconfeti {
    from {opacity: 0;}
    50% {opacity: 1;}
    to {transform: translateY(100vh);}
}

@keyframes amaguemcontainer {
    from {visibility: visible;}
    to {visibility: hidden;}
}


.container-confeti {
    display: flex;
    max-width: 100%;
    width: 90%;
    height: 100vh;
    z-index: 1000;
    margin:0 auto;
	position: absolute;
	visibility:hidden;
    animation: amaguemcontainer;
    animation-duration: 4s;
}
.confeti {
    position: absolute;
    width: 10px;
    height: 30px;
    top: 0;
    opacity: 0;
}

.confeti:nth-child(odd) {
    background: #E63946;
}
.confeti:nth-child(2n) {
    background: #84C318;
}

.confeti:nth-child(4n-7) {
  background: #73EEDC;
}
.confeti:nth-child(1) {
    left: 5%;
    transform: rotate(-23deg);
    animation: cauconfeti 5 ease-in-out;
    animation-delay: 152ms;
    animation-duration: 1000ms;
}

.confeti:nth-child(2) {
    left: 12%;
    transform: rotate(35deg);
    animation: cauconfeti 5 ease-in-out;
    animation-delay: 200ms;
    animation-duration: 1100ms;
}

.confeti:nth-child(3) {
    left: 25%;
    transform: rotate(-23deg);
    animation: cauconfeti 5 ease-in-out;
    animation-delay: 146ms;
    animation-duration: 1300ms;
}

.confeti:nth-child(4) {
    left: 32%;
    transform: rotate(35deg);
    animation: cauconfeti 5 ease-in-out;
    animation-delay: 182ms;
    animation-duration: 1500ms;
}

.confeti:nth-child(5) {
    left: 45%;
    transform: rotate(-23deg);
    animation: cauconfeti 5 ease-in-out;
    animation-delay: 232ms;
    animation-duration: 900ms;
}

.confeti:nth-child(6) {
    left: 52%;
    transform: rotate(35deg);
    animation: cauconfeti 5 ease-in-out;
    animation-delay: 222ms;
    animation-duration: 1300ms;
}

.confeti:nth-child(7) {
    left: 65%;
    transform: rotate(-23deg);
    animation: cauconfeti 5 ease-in-out;
    animation-delay: 382ms;
    animation-duration: 1200ms;
}

.confeti:nth-child(8) {
    left: 73%;
    transform: rotate(35deg);
    animation: cauconfeti 5 ease-in-out;
    animation-delay: 122ms;
    animation-duration: 1600ms;
}

.confeti:nth-child(9) {
    left: 77%;
    transform: rotate(-23deg);
    animation: cauconfeti 5 ease-in-out;
    animation-delay: 152ms;
    animation-duration: 1200ms;
}

.confeti:nth-child(10) {
    left: 82%;
    transform: rotate(35deg);
    animation: cauconfeti 5 ease-in-out;
    animation-delay: 282ms;
    animation-duration: 700ms;
}

.confeti:nth-child(3n) {
    width: 5px;
    height: 60px;
    border-radius: 15px;
    animation-duration: 1200ms;
    animation-delay: 1000ms;
}

.confeti:nth-child(4n) {
    width: 5px;
    height: 12px;
    animation-duration: 2000ms;
}
.confeti:nth-child(4n) {
  position: relative;
  width: 50px;
  height: 5px;
  margin: 20px 0;
  background: #457B9D;
  border-radius: 60% / 10%;
  color: white;
  text-align: center;
  text-indent: .1em;
}
.confeti:nth-child(4n):before {
  content: '';
  position: absolute;
  top: 10%;
  bottom: 10%;
  right: -5%;
  left: -5%;
  background: inherit;
  border-radius: 5% / 50%;
}
.confeti:nth-child(4n):after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -11px;
    width: 50px;
    height: 5px;
  background: #457B9D;
  border-radius: 80% / 150%;
    
}