From 5ec026389484892fb78e54267f4ed71a5a881964 Mon Sep 17 00:00:00 2001 From: JackWebDev <33595694+jackwebdev@users.noreply.github.com> Date: Sun, 2 Oct 2022 10:40:10 +0100 Subject: [PATCH 001/111] Added a shiny-gradient button --- buttons/buttons.css | 35 +++++++++++++++++++++++++++++++++++ index.html | 3 +++ 2 files changed, 38 insertions(+) diff --git a/buttons/buttons.css b/buttons/buttons.css index fa7c182..ce2e730 100644 --- a/buttons/buttons.css +++ b/buttons/buttons.css @@ -256,6 +256,41 @@ a:focus-visible { animation: MoveUpInitial 0.2s forwards, MoveUpEnd 0.2s forwards 0.2s; } +.button--shiny-gradient { + color: #fff; + font-size: 1.4rem; + font-weight: 600; + border-radius: 0.8rem; + padding: 1.5rem 2.8rem; + background-color: rgb(110, 217, 249); + background: linear-gradient( + 165deg, + rgb(32, 114, 247) 20%, + rgb(110, 217, 249) 45%, + rgb(32, 114, 247) 80% + ); + background-size: 350%; + background-position: left; + box-shadow: + 0 0 0.2rem rgba(110, 217, 249, 0.8), + 0 0.2rem 0.8rem -0.2rem rgba(32, 114, 247, 0.8), + inset 0.5rem 0.5rem 0.5rem rgba(110, 217, 249, 0.6), + inset -0.5rem -0.5rem 0.5rem rgba(32, 114, 247, 0.6); + + transition: background-position 400ms ease-in-out, + box-shadow 600ms ease-in-out; + -webkit-transition: background-position 400ms ease-in-out, + -webkit-box-shadow 600ms ease-in-out; +} + +.button--shiny-gradient:hover { + background-position: right; + box-shadow: 0 0.5rem 2rem rgba(110, 217, 249, 0.8), + 0 2rem 2rem -2.5rem rgba(32, 114, 247, 0.8), + inset 0.6rem 0.6rem 0.6rem rgba(110, 217, 249, 0.8), + inset -0.6rem -0.6rem 0.6rem rgba(4, 86, 219, 0.8); + } + @keyframes MoveUpInitial { to { transform: translate3d(0,-105%,0); diff --git a/index.html b/index.html index 95c56ab..80dd722 100644 --- a/index.html +++ b/index.html @@ -55,6 +55,9 @@