Skip to content

Commit e3a3c51

Browse files
author
Giovanni Ciandrini
committed
Button hover effect
1 parent d45372d commit e3a3c51

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

components/feedback/stickybutton.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,16 @@ const StickyButton = `
2020
-webkit-transform: rotate(-90deg);
2121
transform: rotate(-90deg);
2222
}
23-
.sticky-button:hover .sticky-button:focus {
23+
.sticky-button:active {
24+
box-shadow: -5px 5px 0px #000000;
25+
webkit-transform-origin: 105% 100%;
26+
transform-origin: 105% 100%;
27+
-webkit-transform: rotate(-90deg);
28+
transform: rotate(-90deg);
29+
}
30+
.sticky-button:hover {
2431
background-color: var(--primary-color-dark);
25-
transition: all .2s ease-in-out;
26-
box-shadow: 2px 2px 10px rgba(0,0,0, 0.3);
27-
}
32+
}
2833
.icono-mail {
2934
box-sizing: border-box;
3035
display: inline-block;

0 commit comments

Comments
 (0)