Skip to content

Instantly share code, notes, and snippets.

@mrlannigan
Created March 29, 2019 07:05
Show Gist options
  • Save mrlannigan/4ab44e1b6c1f22416d5af891d5222cd5 to your computer and use it in GitHub Desktop.
Save mrlannigan/4ab44e1b6c1f22416d5af891d5222cd5 to your computer and use it in GitHub Desktop.
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Cinematic Bars</title>
<style>
body {
margin: 0;
padding: 0;
}
.full {
width: 100%;
margin: 0;
padding: 0;
}
.container {
background: black;
height: 10vh;
-webkit-animation: expand-top 2s;
position: fixed;
width: 100%;
display: block;
}
.container.top {
top: 0px;
}
.container.bottom {
bottom: 0;
}
@-webkit-keyframes expand-top {
0% {
height: 0px;
}
100% {
height: 10vh;
}
}
</style>
</head>
<body>
<div class="full">
<div class="container top">
<!-- Suck one bull -->
</div>
<div class="container bottom">
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment