Skip to content

Instantly share code, notes, and snippets.

@miklb
Forked from anonymous/dabblet.css
Created May 18, 2012 18:36
Show Gist options
  • Save miklb/2726938 to your computer and use it in GitHub Desktop.
Save miklb/2726938 to your computer and use it in GitHub Desktop.
Proof of Concept for "fancy" call to action
/**
* Proof of Concept for "fancy" call to action
*/
body {background: #fff;}
@-webkit-keyframes rotate {
0% { -webkit-transform: rotate(0deg) }
100% { -webkit-transform: rotate(360deg) }}
@-moz-keyframes rotate {
0% { -moz-transform: rotate(0deg) }
100% {-moz-transform: rotate(360deg) }
}
.star {
background: rgb(41,115,151);
width: 200px;
height: 200px;
position: absolute;
text-align: center;
top: 100px;
left:33% ;
border-radius: 12px;
-webkit-animation: rotate 45s linear infinite;
-moz-animation-duration: 45s;
-moz-animation-name: rotate;
-moz-animation-iteration-count: infinite;
}
.text {
color: rgb(41,115,151);
box-shadow:inset 0px -3px 2px rgba(0,0,0,0.75);
background:#fff;
position: absolute;
top: 100px;
left: 33%;
width: 200px;
height: 200px;
border-radius: 100px;
text-align: center;
; z-index: 99;
-webkit-transform: rotate(-5deg);
-moz-transform: rotate(-5deg);
text-shadow: rgba(0,0,0,0.75) 2px 1px 2px;
}
.text h2 {
font-size: 3em;
}
.star:before, .star:after {
content: "";
position: absolute;
top: 0;
left: 0;
height: 200px;
width: 200px;
background: rgb(41,115,151);
border-radius: 12px;
-webkit-animation: rotate 20s linear infinite;
}
.star:before {
-webkit-transform: rotate(30deg);
-moz-transform: rotate(30deg);
-ms-transform: rotate(30deg);
-o-transform: rotate(30deg);
}
.star:after {
-webkit-transform: rotate(60deg);
-moz-transform: rotate(60deg);
-ms-transform: rotate(60deg);
-o-transform: rotate(60deg);
}
<!-- content to be placed inside <body>…</body> -->
<div class="star"></div>
<div class="text"><h2>Buy Me Now!</h2></div>
{"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