Untitled
3 years ago in HTML
<html>
<head>
<title>
Classroom
</title>
<link rel="icon" type="image/png" href="https://ssl.gstatic.com/classroom/favicon.png">
</head>
<body>
<div class="container">
<div class="rain">
<div class="drop"></div>
<div class="waves">
<div></div>
<div></div>
</div>
<div class="splash"></div>
<div class="particles">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<div class="rain">
<div class="drop"></div>
<div class="waves">
<div></div>
<div></div>
</div>
<div class="splash"></div>
<div class="particles">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<div class="rain">
<div class="drop"></div>
<div class="waves">
<div></div>
<div></div>
</div>
<div class="splash"></div>
<div class="particles">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<div class="rain">
<div class="drop"></div>
<div class="waves">
<div></div>
<div></div>
</div>
<div class="splash"></div>
<div class="particles">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div><div>
<div id="text1">Seleziona il dispositivo da cui stai accedendo:</div>
<ul>
<li><a href="https://classroom.google.com/u/1/h" id="bu1">PC mio<a></li>
<a href="https://classroom.google.com/u/6/h"><li><a href="https://classroom.google.com/u/6/h" id="bu1">Mac Casa<a></li></a>
<li><a href="https://classroom.google.com/u/5/h" id="bu1">Tablet mio<a></li>
</ul>
</div>
<div class="rain">
<div class="drop"></div>
<div class="waves">
<div></div>
<div></div>
</div>
<div class="splash"></div>
<div class="particles">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<div class="rain">
<div class="drop"></div>
<div class="waves">
<div></div>
<div></div>
</div>
<div class="splash"></div>
<div class="particles">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<div class="rain">
<div class="drop"></div>
<div class="waves">
<div></div>
<div></div>
</div>
<div class="splash"></div>
<div class="particles">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<div class="rain">
<div class="drop"></div>
<div class="waves">
<div></div>
<div></div>
</div>
<div class="splash"></div>
<div class="particles">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<div class="rain">
<div class="drop"></div>
<div class="waves">
<div></div>
<div></div>
</div>
<div class="splash"></div>
<div class="particles">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</div>
<style type="text/css">
/*pioggia*/
html{
height: 100%;
}
body{
height: 100%;
margin: 0px;
display: flex;
justify-content: center;
align-items: center;
background-color: black;
}
.container{
width: 100%;
height: 100%;
min-width: 600px;
max-width: 800px;
max-height: 500px;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
}
.row{
display: flex;
justify-content: center;
align-items: center;
}
.rain{
position: relative;
width: 100%;
height: 100%;
}
.rain:nth-of-type(1){
--duration: 2.7s;
--delay: 1s;
transform: translate(10%, 10%) scale(0.9);
}
.rain:nth-of-type(2){
--duration: 2.1s;
--delay: 1.2s;
transform: translate(-20%, 40%) scale(1.3);
}
.rain:nth-of-type(3){
--duration: 2.3s;
--delay: 2s;
transform: translate(0%, 50%) scale(1.1);
}
.rain:nth-of-type(4){
--duration: 2s;
--delay: 4s;
transform: translate(0%, -10%) scale(1.2);
}
.rain:nth-of-type(5){
--duration: 2.5s;
--delay: 0s;
transform: translate(10%, 0%) scale(0.9);
}
.rain:nth-of-type(6){
--duration: 2s;
--delay: 2.7s;
transform: translate(-20%, 0%) scale(1);
}
.rain:nth-of-type(7){
--duration: 1.8s;
--delay: 1.3s;
transform: translate(20%, -40%) scale(1.2);
}
.rain:nth-of-type(8){
--duration: 2.2s;
--delay: 0s;
transform: translate(20%, 0%) scale(1);
}
.rain:nth-of-type(9){
--duration: 2s;
--delay: 0.5s;
transform: translate(0%, -10%) scale(1.3);
}
.drop{
background-color: white;
width: 3px;
height: 100px;
position: absolute;
top: calc(50% - 100px);
left: calc(50% - 1.5px);
animation-name: fall;
animation-duration: var(--duration);
animation-delay: var(--delay);
animation-iteration-count: infinite;
animation-timing-function: ease-in;
animation-fill-mode: backwards;
}
@keyframes fall{
0%{
transform: translateY(-120vh);
}
45%{
transform: translateY(0%);
opacity: 1;
}
46%{
opacity: 0;
}
100%{
opacity: 0;
}
}
.waves > div{
position: absolute;
top:0px;
left: 0px;
right: 0px;
bottom: 0px;
border-radius: 50%;
border: solid white 3px;
animation-name: spread;
animation-duration: var(--duration);
animation-delay: var(--delay);
animation-iteration-count: infinite;
animation-timing-function: ease-out;
animation-fill-mode: backwards;
}
.waves > div:nth-child(2){
animation-delay: calc(var(--delay) + 0.3s);
animation-timing-function: linear;
}
@keyframes spread{
0%{
transform: scale(0);
opacity: 1;
}
40%{
transform: scale(0);
opacity: 1;
}
100%{
transform: scale(1);
opacity: 0;
}
}
.splash{
position: absolute;
top: 10%;
bottom: 50%;
left: 35%;
right: 35%;
border-radius: 8px;
clip-path: polygon(7% 100%, 5% 95%, 3% 80%, 11% 50%, 17% 38%, 23% 44%, 30% 53%, 37% 28%, 40% 29%, 45% 43%, 51% 53%, 59% 36%, 64% 22%, 67% 23%, 70% 34%, 72% 46%, 79% 37%, 83% 37%, 93% 61%, 96% 76%, 96% 94%, 94% 100%);
background-color: white;
transform-origin: bottom;
animation-name: splash;
animation-duration: var(--duration);
animation-delay: var(--delay);
animation-iteration-count: infinite;
animation-timing-function: ease-out;
animation-fill-mode: backwards;
}
@keyframes splash{
0%{
transform: scale(0.3, 0);
}
49%{
transform: scale(0.3, 0);
}
50%{
transform: scale(0.3, 0.3);
}
60%{
transform: scale(0.7, 1);
}
90%{
transform: scale(1, 0);
}
100%{
transform: scale(1, 0);
}
}
.particles > div{
position: absolute;
border-radius: 100%;
background-color: white;
animation-duration: var(--duration);
animation-delay: var(--delay);
animation-iteration-count: infinite;
animation-timing-function: ease;
animation-fill-mode: backwards;
}
.particles > div:nth-child(1){
width: 7px;
height: 7px;
top: 50%;
left: 50%;
animation-name: jumpLeft;
}
.particles > div:nth-child(2){
width: 5px;
height: 5px;
top: 30%;
left: 50%;
animation-name: jumpLeft;
animation-delay: calc(var(--delay) + 0.1s);
}
.particles > div:nth-child(3){
width: 3px;
height: 3px;
top: 20%;
left: 70%;
animation-name: jumpRight;
animation-delay: calc(var(--delay) + 0.15s);
}
.particles > div:nth-child(4){
width: 5px;
height: 5px;
top: 30%;
left: 50%;
animation-name: jumpRight;
animation-delay: calc(var(--delay) + 0.3s);
}
@keyframes jumpLeft{
0%{
transform: translate(0,0) scale(0);
}
45%{
transform: translate(0,0) scale(0);
}
60%{
transform: translate(-50px, -90px) scale(1);
}
100%{
transform: translate(-60px, 0px) scale(0.1);
}
}
@keyframes jumpRight{
0%{
transform: translate(0,0) scale(0);
}
45%{
transform: translate(0,0) scale(0);
}
60%{
transform: translate(30px, -80px) scale(1);
}
100%{
transform: translate(50px, 0px) scale(0.1);
}
}
/*fine pioggia*/
/*inizio testo*/
@import url("https://fonts.googleapis.com/css?family=Kanit:900");
#text1{
color: #fff;
font-family: "Kanit";
font-size: 40px;
line-height: 1em;
margin: 0;
text-align: center;
top: 50%;
transform: translateY(-50%);
width: 100%;
text-shadow: 0 1px 0 #ee733a, 0 2px 0 #e98a3c, 0 3px 0 #f78c12, 0 4px 0 #ec591f, 0 5px 0 #f1550c, 0 6px 0 #db3c20, 0 7px 0 #ee3717, 0 8px 0 #e92b12, 0 0 5px rgba(230, 139, 139, 0.05), 0 -1px 3px rgba(230, 139, 139, 0.2), 0 9px 9px rgba(230, 139, 139, 0.3), 0 12px 12px rgba(230, 139, 139, 0.3), 0 15px 15px rgba(230, 139, 139, 0.3);
}
/*fine testo*/
#bu1 {
text-decoration: none;
color: white;
font-weight: 300;
}
/*bottoni*/
ul {
padding: 0;
list-style-type: none;
}
ul li {
box-sizing: border-box;
width: 15em;
height: 3em;
font-size: 20px;
border-radius: 0.5em;
margin: 0.5em;
box-shadow: 0 0 1em rgba(0,0,0,0.2);
color: white;
font-family: sans-serif;
text-transform: capitalize;
line-height: 3em;
transition: 0.3s;
cursor: pointer;
}
ul li:nth-child(odd) {
background: linear-gradient(to right, orange, tomato);
text-align: left;
padding-left: 10%;
transform: perspective(500px) rotateY(45deg);
}
ul li:nth-child(even) {
background: linear-gradient(to left, orange, tomato);
text-align: right;
padding-right: 10%;
transform: perspective(500px) rotateY(-45deg);
}
ul li:nth-child(odd):hover {
transform: perspective(200px) rotateY(45deg);
padding-left: 5%;
}
ul li:nth-child(even):hover {
transform: perspective(200px) rotateY(-45deg);
padding-right: 5%;
}
/*fine bottoni*/
</style>
</body>
</html>