Skip to content

Commit

Permalink
subiendo proyecto de background efecto movimiento
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicobogado12 committed Aug 3, 2022
0 parents commit 4a566f9
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
15 changes: 15 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Animacion Background</title>
</head>
<body>
<section>
<h1>Animacion Background</h1>
</section>
</body>
</html>
50 changes: 50 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;1,700&display=swap');

*{
margin: 0;
padding: 0;
box-sizing: border-box;
}

html{
font-size: 10px;
font-family: 'Lato', sans-serif;
}

section{
width: 100%;
height: 100vh;
color: #fff;
background: linear-gradient(-45deg, #EE7752, #E73C7E,#23A6D5,#23D5AB );
background-size: 400%, 400%;
position: relative;
animation: efectoMover 10s ease-in-out infinite;
}


h1{
font-size: 4rem;
font-weight: 300;
text-transform: uppercase;
letter-spacing: 2x;
border: 3px solid #fff;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 5rem 10rem;
}


@keyframes efectoMover{
0%{
background-position: 0 50%;
}
50%{
background-position: 100% 50%;
}
100%{
background-position: 0 50%;
}

}

0 comments on commit 4a566f9

Please sign in to comment.