Skip to content

Commit

Permalink
Added animation to game show page
Browse files Browse the repository at this point in the history
  • Loading branch information
miketalley committed Jul 30, 2014
1 parent b5df1be commit 0d82dfa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions app/assets/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@
transition-duration: 0;
}

.game-name.ng-enter {
-webkit-animation: bounceInLeft 1.5s;
-moz-animation: bounceInLeft 1.5s;
-ms-animation: bounceInLeft 1.5s;
animation: bounceInLeft 1.5s;
}

#sourceResults {
height: 450px;
}
Expand Down
2 changes: 1 addition & 1 deletion app/views/games/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<img src='<%= @game.icon_url %>'>
</div>
<div class='col-md-10'>
<h1 class='game-name'><%= @game.name %></h1>
<h1 class='game-name ng-animate ng-enter'><%= @game.name %></h1>
<h4>
<dl>
<dt><a href ng-click='showBonds = !showBonds'><h3 class='game-name'>
Expand Down

0 comments on commit 0d82dfa

Please sign in to comment.