Skip to content

Instantly share code, notes, and snippets.

@devopsec
Last active May 21, 2016 17:52
Show Gist options
  • Save devopsec/667369ef977e92db28b02d0f275a61aa to your computer and use it in GitHub Desktop.
Save devopsec/667369ef977e92db28b02d0f275a61aa to your computer and use it in GitHub Desktop.
Script Warriors Instructions
<!--Script Warriors Instructions
Created By: DevOpSec-->
<div class="container-fluid">
<h1 class="text-center">How to Play</h1>
<ul>
<h2>...</h2>
<h3>...</h3>
<h4>...</h4>
<h5>...</h5>
<h6>...</h6>
</ul>
<center>
<div class="btn" id="play"><a href="" target="_blank">
<svg>
<rect x="0" y="0" fill="none" width="166" height="45"></rect>
</svg>
Play Now!
</div></a>
</center>
</div>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
@import "bourbon";
@import url(https://fonts.googleapis.com/css?family=Luckiest+Guy);
* {
-webkit-transition-property: all;
-webkit-transition-duration: .2s;
-moz-transition-timing-function: cubic-bezier(100,50,21,6);
-moz-transition-property: all;
-moz-transition-duration: .2s;
-moz-transition-timing-function: cubic-bezier(100,50,21,6);
}
body { border: 10px solid black;
border-style: double;
}
h1 {font-size: 32px; font-family: "Luckiest Guy"; color: #0DF}
h2 {font-size: 28px;
margin-top: 5px;}
h3 {font-size: 28px;
margin-top: 5px;}
h4 {font-size: 28px;
margin-top: 5px;}
h5 {font-size: 28px;
margin-top: 5px;}
h6 {font-size: 28px;
margin-top: 5px;}
.btn {
position: relative;
display: inline-block;
width: 166px;
height: 45px;
font-size: 12px;
line-height: 45px;
text-align: center;
text-transform: uppercase;
color: #222;
cursor: pointer;
overflow: hidden;
}
.btn svg {
position: absolute;
top: 0; left: 0;
}
.btn svg rect {
fill: rgba(2,2,2,0.1);
stroke: #000;
stroke-width: 1;
stroke-dasharray: 422, 0;
@include transition(all 1300ms $ease-out-expo);
}
.btn:hover svg rect {
stroke-width: 5;
stroke-dasharray: 10, 310;
stroke-dashoffset: 33;
}
.btn:hover {
color:#D00;
font-size:18px;
letter-spacing:1px;
font-weight:bold;
}
#play {
margin-bottom: 10px;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment