-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subiendo proyecto de background efecto movimiento
- Loading branch information
0 parents
commit 4a566f9
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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%; | ||
} | ||
|
||
} |