Last active
July 4, 2016 06:13
-
-
Save martinkean/93a1f9190d6d9374c44448f13c13be77 to your computer and use it in GitHub Desktop.
Yay!
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
/** | |
* Yay! | |
*/ | |
/* These exercises are for teaching purposes only. */ | |
/* With thanks to Val Head and Lynda.com for providing the code and images http://www.lynda.com/CSS-tutorials/CSS-Animations/115434-2.html */ | |
body {padding:6em; background:#fcfcfc;} | |
.wrap {width:200px; margin:auto; z-index:1;} | |
.msg { color: whitesmoke; text-align:center; font-family: 'Bree Serif', Courier, monospaced; font-size:3.5em; width:200px; position:absolute; margin:55px 0 0 2px; pointer-events: none; } | |
.sticker { width:200px; height:200px; position:absolute; background: url(http://martinkean.com/kidscon/yay/sticker.png) top center no-repeat; | |
//animation: spin 10s linear infinite; | |
} | |
@keyframes spin { 100%{transform: rotate(1turn);} } |
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
<!-- content to be placed inside <body>…</body> --> | |
<link href='http://fonts.googleapis.com/css?family=Bree+Serif' rel='stylesheet' type='text/css'> | |
<div class="wrap"> | |
<div class="sticker"></div> | |
<div class="msg">yay!</div> | |
</div> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment