Skip to content

Instantly share code, notes, and snippets.

@martinkean
Last active July 4, 2016 06:13
Show Gist options
  • Save martinkean/93a1f9190d6d9374c44448f13c13be77 to your computer and use it in GitHub Desktop.
Save martinkean/93a1f9190d6d9374c44448f13c13be77 to your computer and use it in GitHub Desktop.
Yay!
/**
* 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);} }
<!-- 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>
// alert('Hello world!');
{"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