Created
July 10, 2015 15:36
-
-
Save thomaswilburn/66d9b4519fd4641106ff to your computer and use it in GitHub Desktop.
Weekly JS Challenge #1
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Weekly JS Challenge #1</title> | |
<style> | |
.movie-container { | |
display: flex; | |
background: #333; | |
max-width: 620px; | |
} | |
.button { | |
flex: 0 0 40px; | |
font-size: 48px; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
color: #CCC; | |
text-align: center; | |
background: black; | |
cursor: pointer; | |
} | |
.button:hover { | |
color: white; | |
} | |
.movie-list { | |
flex: 1 0 0%; | |
padding: 0; | |
margin: 0; | |
list-style-type: none; | |
display: flex; | |
overflow: hidden; | |
} | |
.movie-list li { | |
flex: 0 0 75px; | |
margin: 0 4px; | |
display: flex; | |
flex-direction: column; | |
height: 100px; | |
width: 75px; | |
background: rgba(255, 255, 255, .4); | |
justify-content: center; | |
text-align: center; | |
padding: 4px; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="movie-container"> | |
<a class="button previous">«</a> | |
<ul class="movie-list"> | |
<li> Air Bud | |
<li> The Room | |
<li> Magic Mike | |
<li> Manos: The Hands of Fate | |
<li> The Human Centipede | |
<li> A Deadly Adoption | |
<li> Revenge of the Clones | |
<li> That's So Raven | |
<li> Scanners | |
<li> Police Academy 4 | |
<li> Nova: Honey Badgers | |
<li> Fast Food Nation | |
<li> The Breakfast Club | |
<li> Eraserhead | |
</ul> | |
<a class="button next">»</a> | |
</div> | |
<script> | |
// YOUR SCRIPT GOES HERE | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This one adds animation, albeit with an easing function that's only halfway decent.