-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Colour Shifting Background (#1469)
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
Components/Backgrounds/Colour-Shifting-Background/index.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,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="style.css"> | ||
<title>Colour Shifting Background</title> | ||
</head> | ||
<body> | ||
<h1>Beautiify</h1> | ||
</body> | ||
</html> |
24 changes: 24 additions & 0 deletions
24
Components/Backgrounds/Colour-Shifting-Background/style.css
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,24 @@ | ||
body { | ||
margin: 0; | ||
height: 100vh; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
background: linear-gradient(45deg, #ff0000, #0000ff); | ||
background-size: 200% 200%; | ||
animation: bgShift 6s infinite alternate; | ||
} | ||
|
||
@keyframes bgShift { | ||
0% { | ||
background-position: 0% 50%; | ||
} | ||
100% { | ||
background-position: 100% 50%; | ||
} | ||
} | ||
|
||
h1 { | ||
color: white; | ||
font-family: Arial, sans-serif; | ||
} |
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