Skip to content

Commit

Permalink
Add some animations.
Browse files Browse the repository at this point in the history
  • Loading branch information
xhacker committed Jun 26, 2014
1 parent bf91652 commit a2177e3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
margin-top: 30px;
}
#title {
opacity: 0;

float: left;
}
#title h1 {
Expand All @@ -33,6 +35,8 @@
font-size: 22px;
}
#login {
opacity: 0;

float: right;
width: 170px;
margin-top: 58px;
Expand All @@ -56,10 +60,23 @@
top: 1px;
}
#screenshot {
display: block;
opacity: 0;
margin: auto;
margin-top: 5px;
}
</style>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$(function() {
$("#title, #login").animate({
"opacity": 1
}, "slow");
$("#screenshot").animate({
"opacity": 1,
"margin-top": 0
}, "slow");
})
</script>
<body>
<div id="header">
<div id="title">
Expand Down
2 changes: 1 addition & 1 deletion src/user.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div class="container-fluid" id="container">
<div class="row" id="row">
<div id="sidebar">
<h1>Stargazer {{ username }}</h1>
<h1>Stargazer</h1>
<img id="avatar" src="{{ avatar }}" class="img-thumbnail" align="middle">
<input id="search" data-ng-model="searchText" type="text" placeholder="Search...">
<ul id="general">
Expand Down

0 comments on commit a2177e3

Please sign in to comment.