Skip to content

Commit

Permalink
Merge pull request #64 from SevilleCode/sevillecode
Browse files Browse the repository at this point in the history
Added an animated background color
  • Loading branch information
pulkit-30 authored Oct 18, 2021
2 parents eb3dab9 + 4dd95ee commit 533184c
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Animated Background Color/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Animated Background Color</title>
<link href="style.css" type="text/css" rel="stylesheet">
</head>

<body>
<section><h1>Animated Background Color</h1>
<p>The background color here isn't static, but it cycles through several different colors. And it's all accomplished with CSS, no JavaScript in sight!</p>
<footer><a href="https://github.com/SevilleCode">SevilleCode</a> October 13, 2021</footer></section>
</body>
</html>
2 changes: 2 additions & 0 deletions Animated Background Color/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Animated Background Color
<img src="./screenshot.png"/>
Binary file added Animated Background Color/screenshot.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions Animated Background Color/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@charset "utf-8";
/* CSS Document */
body{
background-color: #010A26;
animation-name: colors;
animation-duration: 15s;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
}

@keyframes colors {
0% {background-color:#010A26;}
25% {background-color:#03318C;}
50% {background-color:#023059;}
100% {background-color:#1763A6;}
}

section {
width: 95%;
margin-right: auto;
margin-left: auto;
background-color: #DCEEF2;
text-align: center;
font-family:Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
}

h1 {
font-size:50pt;
}

p {
font-size:25pt;
}

a {
color: black;
}

0 comments on commit 533184c

Please sign in to comment.