Forked from David Maciejewski's Pen Demo.
Created
July 6, 2015 13:09
-
-
Save Spacefish/9c719741ce8eeccf7bff to your computer and use it in GitHub Desktop.
Demo
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
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Foobar</title> | |
</head> | |
<body> | |
<div class="wrapper"> | |
<div class="header"> | |
Aufgabe: Header, Inhaltsspalte und Sidebar (rechts) gestalten.<br> | |
Header: Grün, Content: Blau, Sidebar: Rot<br> | |
Content: 70%, Sidebar: 20%; | |
</div> | |
<div class="content"> | |
CONTENT | |
</div> | |
<div class="sidebar"> | |
SIDEBAR | |
</div> | |
</div> | |
</body> | |
</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
*, *::before, *::after { | |
box-sizing: border-box; | |
} | |
body { | |
background-color: black; | |
} | |
@keyframes example { | |
from { | |
filter: hue-rotate(0deg) blur(150px); | |
transform: rotate(360deg); | |
width: 100%; | |
} | |
to { | |
filter: hue-rotate(720deg) blur(0px); | |
transform: rotate(360deg); | |
width: 100%; | |
} | |
} | |
.wrapper { | |
// animation-timing-function: linear; | |
animation-name: example; | |
animation-duration: 1s; | |
animation-iteration-count: infinite; | |
} | |
.header { | |
background-color: #0f0; | |
height: 80px; | |
} | |
.content { | |
width: 70%; | |
background-color: #00f; | |
height: 200px; | |
} | |
.sidebar { | |
position: absolute; | |
height: 200px; | |
right: 0px; | |
top: 80px; | |
width: 20%; | |
background-color: #f00; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment