Created
August 1, 2015 04:02
-
-
Save jackiewu/419587767c3ed22c3842 to your computer and use it in GitHub Desktop.
Caleb Doucet
This file contains 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
<div class="content"> | |
<h1> | |
<span class="logo-tag"><</span> | |
<span id="tag-content"></span> | |
<span class="text-cursor">|</span> | |
<span class="logo-tag">/></span> | |
</h1> | |
<h2><aleb />oucet</h2> | |
</div> |
This file contains 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
var tags = [ | |
"Front-End Developer", | |
"Designer", | |
"Programmer", | |
"Disc Golfer", | |
"Programmer", | |
"Gamer", | |
"Board Gamer", | |
"CSS Enthusiast", | |
"Game Developer", | |
"PHP Developer", | |
"Cat Person", | |
"JavaScript Developer", | |
"HTML Developer", | |
"Web Programmer", | |
"Bug Squasher", | |
"Code Penner" | |
] | |
$(document).ready(function(){ | |
setTimeout(backspaceTagContent, 1000); | |
}); | |
function changeTagContent() { | |
backspaceTagContent(); | |
} | |
function backspaceTagContent() { | |
$('#tag-content').html($('#tag-content').html().slice(0,-1)); | |
if ($('#tag-content').html().length) { | |
setTimeout(backspaceTagContent, 50); | |
} else { | |
setTimeout(function() { insertTagContent(getRandomTag()); }, 100); | |
} | |
} | |
function insertTagContent(tag) { | |
$('#tag-content').html(tag.substring(0, $('#tag-content').html().length + 1)); | |
if ($('#tag-content').html().length != tag.length) { | |
setTimeout(function() { insertTagContent(tag); }, 100); | |
} else { | |
setTimeout(changeTagContent, 5000); | |
} | |
} | |
function getRandomTag() { | |
return tags[Math.floor(Math.random() * tags.length)]; | |
} |
This file contains 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
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> |
This file contains 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
@import "compass"; | |
body { | |
font-family: 'Orbitron', sans-serif; | |
color: #009688; | |
background: #FFF; | |
font-size: 62.5%; | |
} | |
h1 { | |
font-size: 3em; | |
@media screen and (max-width: 480px) { | |
font-size: 2em; | |
} | |
} | |
.content { | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
position: fixed; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
} | |
.logo-tag { | |
font-size: 1.5em; | |
text-shadow: 0 0 30px rgba(0, 150, 136, 0.4); | |
} | |
.text-cursor { | |
opacity: 1; | |
animation: cursor-flash 1.6s infinite; | |
} | |
@keyframes cursor-flash { | |
49% {opacity: 1;} | |
50% {opacity: 0;} | |
99% {opacity: 0;} | |
100% {opacity: 1;} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment