Skip to content

Commit b445eb8

Browse files
committed
Re-implemented footer hover animations
1 parent 663fd97 commit b445eb8

File tree

2 files changed

+32
-8
lines changed

2 files changed

+32
-8
lines changed

littlelink/css/animations.css

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- Entrance animations
44
- Button hover animations
55
- Icon hover animations
6+
- Footer hover animations
67
78
*/
89

@@ -51,7 +52,7 @@
5152
–––––––––––––––––––––––––––––––––––––––––––––––––– */
5253
/* (Also apply to icon) */
5354

54-
.button-hover{
55+
.button-hover, .credit-hover{
5556
display:inline-block;
5657
-webkit-transform:perspective(1px) translateZ(0);
5758
transform:perspective(1px) translateZ(0);
@@ -61,7 +62,9 @@
6162
-webkit-transition-property:transform;
6263
transition-property:transform
6364
}
64-
.button-hover:active,.button-hover:focus,.button-hover:hover{
65+
.button-hover:active,.credit-hover:active,
66+
.button-hover:focus,.credit-hover:focus,
67+
.button-hover:hover,.credit-hover:hover{
6568
-webkit-transform:scale(1.1);
6669
transform:scale(1.1)
6770
}
@@ -144,4 +147,25 @@
144147
-webkit-transform:translateY(0);
145148
transform:translateY(0)
146149
}
147-
}
150+
}
151+
152+
153+
/* Footer hover animations
154+
–––––––––––––––––––––––––––––––––––––––––––––––––– */
155+
156+
.footer-hover{
157+
display:inline-block;
158+
-webkit-transform:perspective(1px) translateZ(0);
159+
transform:perspective(1px) translateZ(0);
160+
box-shadow:0 0 1px rgba(0,0,0,0);
161+
-webkit-transition-duration:.3s;
162+
transition-duration:.3s;
163+
-webkit-transition-property:transform;
164+
transition-property:transform;
165+
-webkit-transition-timing-function:ease-out;
166+
transition-timing-function:ease-out
167+
}
168+
.footer-hover:active,.footer-hover:focus,.footer-hover:hover{
169+
-webkit-transform:translateY(-8px);
170+
transform:translateY(-8px)
171+
}

resources/views/layouts/footer.blade.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<div class="container">
22
<div class="footer fadein" style="margin:5% 0px 35px 0px;">
33
@if(env('DISPLAY_FOOTER') === true)
4-
<a class="hvr-float spacing" href="{{ url('') }}/">Home</a>
5-
<a class="hvr-float spacing" href="{{ url('') }}/pages/terms">Terms</a>
6-
<a class="hvr-float spacing" href="{{ url('') }}/pages/privacy">Privacy</a>
7-
<a class="hvr-float spacing" href="{{ url('') }}/pages/contact">Contact</a>
4+
<a class="footer-hover spacing" href="{{ url('') }}/">Home</a>
5+
<a class="footer-hover spacing" href="{{ url('') }}/pages/terms">Terms</a>
6+
<a class="footer-hover spacing" href="{{ url('') }}/pages/privacy">Privacy</a>
7+
<a class="footer-hover spacing" href="{{ url('') }}/pages/contact">Contact</a>
88
@endif
99
</div>
1010

1111
@if(env('DISPLAY_CREDIT') === true)
1212
<div class="credit-footer"><a style="text-decoration: none;" class="spacing" href="https://littlelink-custom.com" target="_blank" title="Learn more">
13-
<section class="hvr-grow fadein">
13+
<section class="credit-hover hvr-grow fadein">
1414
<div class="parent-footer credit-icon" >
1515
<img id="footer_spin" class="footer_spin image-footer1 generic" src="{{ asset('littlelink/images/just-gear.svg') }}" alt="LittleLink Custom"></img>
1616
<img class="image-footer2" src="{{ asset('littlelink/images/just-ll.svg') }}" alt="LittleLink Custom"></img>

0 commit comments

Comments
 (0)