Skip to content

Commit b844196

Browse files
committedJan 28, 2014
Added 2 new effects and bower.json
1 parent ecfcf50 commit b844196

7 files changed

+62
-34
lines changed
 

‎bower.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "Hover.css",
3+
"version": "1.0.6",
4+
"homepage": "http://ianlunn.github.io/Hover",
5+
"authors": [
6+
"Ian Lunn <hello@ianlunn.co.uk>"
7+
],
8+
"description": "A collection of CSS3 powered hover effects to be applied to call to actions, buttons, logos, featured images and so on. Easily apply to your own elements, modify or just use for inspiration. Available in CSS and SASS.",
9+
"main": "hover.css",
10+
"keywords": [
11+
"Hover",
12+
"hover",
13+
"Hover Effects",
14+
"CSS Effects",
15+
"CSS3 Effects",
16+
"CSS Hover Effects",
17+
"CSS3 Hover Effects"
18+
],
19+
"license": "MIT",
20+
"private": false,
21+
"ignore": [
22+
"**/.*",
23+
"node_modules",
24+
"bower_components",
25+
"test",
26+
"tests"
27+
]
28+
}

‎css/hover-min.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎css/hover.css

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Hover.css (http://ianlunn.co.uk/)
3-
* Version: 1.0.5
3+
* Version: 1.0.6
44
* Author: Ian Lunn @IanLunn
55
* Author URL: http://ianlunn.co.uk/
66
* Github: https://github.com/IanLunn/Hover
@@ -727,9 +727,9 @@
727727
animation-iteration-count: 1;
728728
}
729729

730-
/* Wobble Top Left Bottom Right */
730+
/* Wobble To Bottom Right */
731731

732-
@-webkit-keyframes wobble-top-left-bottom-right {
732+
@-webkit-keyframes wobble-to-bottom-right {
733733
16.65% {
734734
-webkit-transform: translate(8px, 8px);
735735
transform: translate(8px, 8px);
@@ -761,7 +761,7 @@
761761
}
762762
}
763763

764-
@keyframes wobble-top-left-bottom-right {
764+
@keyframes wobble-to-bottom-right {
765765
16.65% {
766766
-webkit-transform: translate(8px, 8px);
767767
-ms-transform: translate(8px, 8px);
@@ -799,17 +799,17 @@
799799
}
800800
}
801801

802-
.wobble-top-left-bottom-right {
802+
.wobble-to-bottom-right {
803803
display: inline-block;
804804
-webkit-transform: translateZ(0);
805805
-ms-transform: translateZ(0);
806806
transform: translateZ(0);
807807
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
808808
}
809809

810-
.wobble-top-left-bottom-right:hover {
811-
-webkit-animation-name: wobble-top-left-bottom-right;
812-
animation-name: wobble-top-left-bottom-right;
810+
.wobble-to-bottom-right:hover {
811+
-webkit-animation-name: wobble-to-bottom-right;
812+
animation-name: wobble-to-bottom-right;
813813
-webkit-animation-duration: 1s;
814814
animation-duration: 1s;
815815
-webkit-animation-timing-function: ease-in-out;
@@ -818,9 +818,9 @@
818818
animation-iteration-count: 1;
819819
}
820820

821-
/* Wobble Bottom Left Top Right */
821+
/* Wobble To Top Right */
822822

823-
@-webkit-keyframes wobble-bottom-left-top-right {
823+
@-webkit-keyframes wobble-to-top-right {
824824
16.65% {
825825
-webkit-transform: translate(8px, -8px);
826826
transform: translate(8px, -8px);
@@ -852,7 +852,7 @@
852852
}
853853
}
854854

855-
@keyframes wobble-bottom-left-top-right {
855+
@keyframes wobble-to-top-right {
856856
16.65% {
857857
-webkit-transform: translate(8px, -8px);
858858
-ms-transform: translate(8px, -8px);
@@ -890,17 +890,17 @@
890890
}
891891
}
892892

893-
.wobble-bottom-left-top-right {
893+
.wobble-to-top-right {
894894
display: inline-block;
895895
-webkit-transform: translateZ(0);
896896
-ms-transform: translateZ(0);
897897
transform: translateZ(0);
898898
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
899899
}
900900

901-
.wobble-bottom-left-top-right:hover {
902-
-webkit-animation-name: wobble-bottom-left-top-right;
903-
animation-name: wobble-bottom-left-top-right;
901+
.wobble-to-top-right:hover {
902+
-webkit-animation-name: wobble-to-top-right;
903+
animation-name: wobble-to-top-right;
904904
-webkit-animation-duration: 1s;
905905
animation-duration: 1s;
906906
-webkit-animation-timing-function: ease-in-out;

‎index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ <h2>2D Transforms</h2>
4343
<a rel="skew-backward" class="button skew-backward">Skew Backward</a>
4444
<a rel="wobble-horizontal" class="button wobble-horizontal">Wobble Horizontal</a>
4545
<a rel="wobble-vertical" class="button wobble-vertical">Wobble Vertical</a>
46-
<a rel="wobble-top-left-bottom-right" class="button wobble-top-left-bottom-right">Wobble Top Left Bottom Right</a>
47-
<a rel="wobble-bottom-left-top-right" class="button wobble-bottom-left-top-right">Wobble Bottom Left Top Right</a>
46+
<a rel="wobble-to-bottom-right" class="button wobble-to-bottom-right">Wobble To Bottom Right</a>
47+
<a rel="wobble-to-top-right" class="button wobble-to-top-right">Wobble To Top Right</a>
4848
<a rel="wobble-top" class="button wobble-top">Wobble Top</a>
4949
<a rel="wobble-bottom" class="button wobble-bottom">Wobble Bottom</a>
5050
<a rel="wobble-skew" class="button wobble-skew">Wobble Skew</a>

‎scss/effects/_wobble-top-left-bottom-right.scss ‎scss/effects/_wobble-to-bottom-right.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/* Wobble Top Left Bottom Right */
2-
@keyframes wobble-top-left-bottom-right {
1+
/* Wobble To Bottom Right */
2+
@keyframes wobble-to-bottom-right {
33
16.65% {
44
transform: translate(8px, 8px);
55
}
@@ -25,13 +25,13 @@
2525
}
2626
}
2727

28-
@mixin wobble-top-left-bottom-right {
28+
@mixin wobble-to-bottom-right {
2929
display: inline-block;
3030

3131
@include hacks();
3232

3333
&:hover {
34-
animation-name: wobble-top-left-bottom-right;
34+
animation-name: wobble-to-bottom-right;
3535
animation-duration: 1s;
3636
animation-timing-function: ease-in-out;
3737
animation-iteration-count: 1;

‎scss/effects/_wobble-bottom-left-top-right.scss ‎scss/effects/_wobble-to-top-right.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/* Wobble Bottom Left Top Right */
2-
@keyframes wobble-bottom-left-top-right {
1+
/* Wobble To Top Right */
2+
@keyframes wobble-to-top-right {
33
16.65% {
44
transform: translate(8px, -8px);
55
}
@@ -25,13 +25,13 @@
2525
}
2626
}
2727

28-
@mixin wobble-bottom-left-top-right {
28+
@mixin wobble-to-top-right {
2929
display: inline-block;
3030

3131
@include hacks();
3232

3333
&:hover {
34-
animation-name: wobble-bottom-left-top-right;
34+
animation-name: wobble-to-top-right;
3535
animation-duration: 1s;
3636
animation-timing-function: ease-in-out;
3737
animation-iteration-count: 1;

‎scss/hover.scss

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Hover.css (http://ianlunn.co.uk/)
3-
* Version: 1.0.5
3+
* Version: 1.0.6
44
* Author: Ian Lunn @IanLunn
55
* Author URL: http://ianlunn.co.uk/
66
* Github: https://github.com/IanLunn/Hover
@@ -115,14 +115,14 @@
115115
@include wobble-horizontal();
116116
}
117117

118-
@import "effects/wobble-top-left-bottom-right";
119-
.wobble-top-left-bottom-right {
120-
@include wobble-top-left-bottom-right();
118+
@import "effects/wobble-to-bottom-right";
119+
.wobble-to-bottom-right {
120+
@include wobble-to-bottom-right();
121121
}
122122

123-
@import "effects/wobble-bottom-left-top-right";
124-
.wobble-bottom-left-top-right {
125-
@include wobble-bottom-left-top-right();
123+
@import "effects/wobble-to-top-right";
124+
.wobble-to-top-right {
125+
@include wobble-to-top-right();
126126
}
127127

128128
@import "effects/wobble-top";

0 commit comments

Comments
 (0)
Please sign in to comment.