diff options
Diffstat (limited to 'themes/hugo-whisper-theme/assets/scss/libraries/hamburgers/types/_spin-r.scss')
-rwxr-xr-x | themes/hugo-whisper-theme/assets/scss/libraries/hamburgers/types/_spin-r.scss | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/themes/hugo-whisper-theme/assets/scss/libraries/hamburgers/types/_spin-r.scss b/themes/hugo-whisper-theme/assets/scss/libraries/hamburgers/types/_spin-r.scss new file mode 100755 index 0000000..70dc047 --- /dev/null +++ b/themes/hugo-whisper-theme/assets/scss/libraries/hamburgers/types/_spin-r.scss @@ -0,0 +1,43 @@ +@if index($hamburger-types, spin-r) { + /* + * Spin Reverse + */ + .hamburger--spin-r { + .hamburger-inner { + transition-duration: 0.22s; + transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); + + &::before { + transition: top 0.1s 0.25s ease-in, + opacity 0.1s ease-in; + } + + &::after { + transition: bottom 0.1s 0.25s ease-in, + transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19); + } + } + + &.is-active { + .hamburger-inner { + transform: rotate(-225deg); + transition-delay: 0.12s; + transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); + + &::before { + top: 0; + opacity: 0; + transition: top 0.1s ease-out, + opacity 0.1s 0.12s ease-out; + } + + &::after { + bottom: 0; + transform: rotate(90deg); + transition: bottom 0.1s ease-out, + transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1); + } + } + } + } +} |