Skip to content
This repository has been archived by the owner on Oct 16, 2019. It is now read-only.

Commit

Permalink
Simple footer buttons animation
Browse files Browse the repository at this point in the history
  • Loading branch information
erickreutz committed Feb 8, 2014
1 parent 4974645 commit 6389d26
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ul class="sitenav__list">
<li class="sitenav__item">
<a href="/" class="active">
<img src="/images/logo.svg">
<img class="sitenav__logo" src="/images/logo.svg">
</a>
</li>
<li class="sitenav__item">
Expand All @@ -12,7 +12,7 @@
</ul>
<ul class="sitenav__altlist">
<li class="sitenav__item">
<a href="javascript:void(0);">Get in touch</a>
<a href="javascript:void(0);" class="sitenav__contact">Get in touch</a>
</li>
</ul>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions source/stylesheets/app/components/_sitenav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@
}
}
}

.sitenav__logo { margin-bottom: -1px; }

a.sitenav__contact { color: #13c5f1; }
24 changes: 23 additions & 1 deletion source/stylesheets/app/components/_slinks.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
@include keyframes(slinks-item-pop) {
0% {
@include transform(scale(1));
}

50% {
@include transform(scale(.95));
}

100% {
@include transform(scale(1));
}
}

.slinks {
margin: 0;
padding: 0;
Expand All @@ -15,7 +29,15 @@
margin-right: 16px;

&:last-child { margin-right: 0; }
&:active { @include transform(translateY(1px)); }

.no-touch & {
@include transition(all 200ms ease);
&:hover { @include transform(translateY(-6px)); }
&:active {
@include transition(none);
@include transform(translateY(-5px));
}
}

a {
display: block;
Expand Down

0 comments on commit 6389d26

Please sign in to comment.