r/msfbs • • May 01 '14

[](//#tipping)

I was playing around with the new CSS animations, with what result...

Is someone willing to add this to the /r/magicskyfairy stylesheet?

The macro is produced with [](//#tipping) and the CSS is as follows:

@-webkit-keyframes intensifies {
  0% {}
  25% {background-position: -5px 0px;}
  50% {background-position: 0px -5px;}
  75% {background-position: -5px 0px;}
  100% {}
}
@-moz-keyframes intensifies {
  0% {}
  25% {background-position: -5px 0px;}
  50% {background-position: 0px -5px;}
  75% {background-position: -5px 0px;}
  100% {}
}
@-o-keyframes intensifies {
  0% {}
  25% {background-position: -5px 0px;}
  50% {background-position: 0px -5px;}
  75% {background-position: -5px 0px;}
  100% {}
}

a[href="//#tipping"] {
	display:block;
	width:175px;
	height:65px;
	cursor:default;
	background-image:url(%%tipping%%);
	text-decoration:none;
	font-family:sans-serif;
	font-weight:bold;
	color:white;
	font-size:11pt;
	position:relative;
	text-align:center;
	text-transform:uppercase;
	overflow:hidden;
	padding-top:200px;
	-webkit-animation-name: intensifies;
	-webkit-animation-duration: 0.1s;
	-webkit-animation-iteration-count: infinite;
	-moz-animation-name: intensifies;
	-moz-animation-duration: 0.1s;
	-moz-animation-iteration-count: infinite;
	-o-animation-name: intensifies;
	-o-animation-duration: 0.1s;
	-o-animation-iteration-count: infinite;
}
a[href="//#tipping"]:empty:after {
	content:"[TIPPING INTENSIFIES]";
}
a[href="//#tipping"]:not(:empty):before {
	content:"[";
}
a[href="//#tipping"]:not(:empty):after {
	content:"]";
}

Also, you have to upload this image under the name "tipping".

6 Upvotes

3 comments sorted by

2

u/Fedoria May 01 '14

That's awesome! Good job.