aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-11 22:46:16 +0800
committerEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-11 22:46:16 +0800
commit1f4af537c0bf4d8253590fd8c9f449b7a13805a9 (patch)
treef16a7c309322f1b01df0b8218131b21b7d6f7ca2 /packages
parent91c419198539d0eff528500cec4483d5dd5f50c2 (diff)
downloaddexon-sol-tools-1f4af537c0bf4d8253590fd8c9f449b7a13805a9.tar
dexon-sol-tools-1f4af537c0bf4d8253590fd8c9f449b7a13805a9.tar.gz
dexon-sol-tools-1f4af537c0bf4d8253590fd8c9f449b7a13805a9.tar.bz2
dexon-sol-tools-1f4af537c0bf4d8253590fd8c9f449b7a13805a9.tar.lz
dexon-sol-tools-1f4af537c0bf4d8253590fd8c9f449b7a13805a9.tar.xz
dexon-sol-tools-1f4af537c0bf4d8253590fd8c9f449b7a13805a9.tar.zst
dexon-sol-tools-1f4af537c0bf4d8253590fd8c9f449b7a13805a9.zip
Button transitions
Diffstat (limited to 'packages')
-rw-r--r--packages/website/ts/@next/components/button.tsx9
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/website/ts/@next/components/button.tsx b/packages/website/ts/@next/components/button.tsx
index 074371453..eaaf60336 100644
--- a/packages/website/ts/@next/components/button.tsx
+++ b/packages/website/ts/@next/components/button.tsx
@@ -35,9 +35,12 @@ export const Button = styled.button<ButtonInterface>`
font-size: ${props => props.isWithArrow ? '20px' : '18px'};
text-decoration: none;
cursor: pointer;
+ transition: background-color 0.35s, border-color 0.35s;
svg {
- margin-left: 12px;
+ margin-left: 9px;
+ transition: transform 0.5s;
+ transform: translate3d(-2px, 2px, 0);
}
path {
@@ -47,6 +50,10 @@ export const Button = styled.button<ButtonInterface>`
&:hover {
background-color: ${props => !props.isTransparent && '#04BEA8'};
border-color: ${props => (props.isTransparent && !props.isNoBorder && !props.isWithArrow) && '#00AE99'};
+
+ svg {
+ transform: translate3d(2px, -2px, 0);
+ }
}
`;