Skip to content

Instantly share code, notes, and snippets.

@alexpelan
Created October 31, 2016 00:54
Show Gist options
  • Select an option

  • Save alexpelan/621926c9cf61059d1519c3b4df17ed20 to your computer and use it in GitHub Desktop.

Select an option

Save alexpelan/621926c9cf61059d1519c3b4df17ed20 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=621926c9cf61059d1519c3b4df17ed20
<!DOCTYPE html>
<html>
<head>
<title>ScriptEd CSS Garden</title>
</head>
<body>
<h1 id="banner">ScriptEd CSS Site!</h1>
<h1 id="tagline">We love ScriptEd</h1>
<img src="http://i65.tinypic.com/qxvr46.jpg">
<p id="mission">ScriptEd equips students with the fundamental coding skills and professional experiences that together create access to careers in technology.</p>
<p id="about"> This year in ScriptEd we are going to create several websites, games and webapps! </p>
<h1 id="topics"> In ScriptEd we learn...</h1>
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JavaScript</li>
<li>Git</li>
<li>jQuery</li>
</ul>
</body>
</html>
body {
display: flex;
flex-direction: column-reverse;
overflow: hidden;
background-image: url("http://cdn.pcwallart.com/images/new-york-skyline-black-and-white-wallpaper-1.jpg");
background-repeat: no-repeat;
}
ul {
padding: 0;
}
li {
list-style: none;
animation: listitem;
animation-duration: 20s;
animation-iteration-count: infinite;
animation-direction: alternate;
padding: 10px;
color: white;
font-family: Helvetica;
margin-top: 5px;
}
li:before {
display: inline-block;
content: '';
height: 24px;
width: 24px;
background-image: url("http://cdn.shopify.com/s/files/1/1061/1924/products/Thinking_Face_Emoji_grande.png?v=1469791175");
background-size: contain;
vertical-align: middle;
}
@keyframes listitem {
0% {
background-color: #FF0000;
}
16% {background-color: #FF7F00;}
33% {background-color: #FFFF00;}
50% {background-color: #00FF00;}
67% {background-color: #0000FF;}
84% {background-color: #4B0082;}
100% {
background-color: #9400D3;
}
}
#tagline {
position: fixed;
bottom: 0;
left: 50%;
margin: 0;
margin-left: -120px;
background-color: #ececec;
padding-top: 10px;
padding-left: 10px;
padding-right: 10px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border: 5px solid #444;
border-bottom: none;
}
#topics {
box-shadow: 3px 3px 5px 6px #ccc;
width: 250px;
font-family: Comic Sans MS;
background-color: #f9b1b1;
color: #0069fc;
position: absolute;
animation: moveX 3.05s linear 0s infinite alternate,
moveY 3.4s linear 0s infinite alternate;
}
@keyframes moveX {
from { left: 0%; } to { left: 90%; }
}
@keyframes moveY {
from { top: 0%; } to { top: 90%; }
}
img {
height: 140px;
width: 320px;
padding: 10px;
background-color: #ccc;
border-radius: 150px;
}
#banner {
font-family: arial;
transform: rotateY(180deg);
letter-spacing: 5px;
font-size: 128px;
color: white;
margin-top: -100px;
}
#mission {
font-style: italic;
color: #b2cfff;
background: linear-gradient(to right, orange, black);
}
#about {
color: orange;
animation: blink-animation 1s steps(5, start) infinite;
}
@keyframes blink-animation {
to {
visibility: hidden;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment