From 7e37b93f0491e7293e93b1121f472ddebb067e1a Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Mon, 26 Dec 2022 01:53:26 -0800 Subject: [PATCH] Add arrow movement button --- index.html | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/index.html b/index.html index 2a23c02..40380f5 100644 --- a/index.html +++ b/index.html @@ -273,6 +273,25 @@ max-height: 100%; transition: max-height 1700ms; } + + button { + background: hsl(216deg 70% 85%); + padding: 16px; + border-radius: 16px; + border: 1px solid hsl(216deg 70% 80%); + font-weight: 700; + cursor: pointer; + } + + button span { + display: inline-block; + transition: transform 400ms; + } + + :is(button:hover, button:focus) span { + transform: translateX(4px); + transition: transform 200ms; + } css-loaders @@ -383,6 +402,15 @@ + +
+

Button hovers

+ + +
\ No newline at end of file -- 2.47.3