praiadeseselle/wire/modules/Jquery/JqueryUI/vex/styles/_keyframes.sass

140 lines
3.4 KiB
Sass
Raw Normal View History

2022-03-08 15:55:41 +01:00
@import mixins
// Overlay/content animations
=keyframes-vex-fadein
@keyframes vex-fadein
2022-03-08 15:55:41 +01:00
0%
opacity: 0
100%
opacity: 1
=keyframes-vex-fadeout
@keyframes vex-fadeout
2022-03-08 15:55:41 +01:00
0%
opacity: 1
100%
opacity: 0
// Content animations
=keyframes-vex-flyin
@keyframes vex-flyin
2022-03-08 15:55:41 +01:00
0%
opacity: 0
transform: translateY(-40px)
2022-03-08 15:55:41 +01:00
100%
opacity: 1
transform: translateY(0)
2022-03-08 15:55:41 +01:00
=keyframes-vex-flyout
@keyframes vex-flyout
2022-03-08 15:55:41 +01:00
0%
opacity: 1
transform: translateY(0)
2022-03-08 15:55:41 +01:00
100%
opacity: 0
transform: translateY(-40px)
2022-03-08 15:55:41 +01:00
=keyframes-vex-dropin
@keyframes vex-dropin
2022-03-08 15:55:41 +01:00
// We start at 0 first and, while hidden
// move to -800px, where the animation
// really begins. This was necessary because
// otherwise, when starting the animation
// at -800px, the browser scrolls up 800px
// to try to display this object positioned
// above the page.
// https://github.com/HubSpot/vex/issues/21
0%
transform: translateY(0)
2022-03-08 15:55:41 +01:00
opacity: 0
1%
transform: translateY(-800px)
2022-03-08 15:55:41 +01:00
opacity: 0
// Real animation begins here
2%
transform: translateY(-800px)
2022-03-08 15:55:41 +01:00
opacity: 1
100%
transform: translateY(0)
2022-03-08 15:55:41 +01:00
opacity: 1
=keyframes-vex-dropout
@keyframes vex-dropout
2022-03-08 15:55:41 +01:00
0%
transform: translateY(0)
2022-03-08 15:55:41 +01:00
100%
transform: translateY(-800px)
2022-03-08 15:55:41 +01:00
=keyframes-vex-slideup
@keyframes vex-slideup
2022-03-08 15:55:41 +01:00
// We start at 0 first and, while hidden
// move to -800px, where the animation
// really begins. This was necessary because
// otherwise, when starting the animation
// at -800px, the browser scrolls up 800px
// to try to display this object positioned
// above the page.
// https://github.com/HubSpot/vex/issues/21
0%
transform: translateY(0)
2022-03-08 15:55:41 +01:00
opacity: 0
1%
transform: translateY(800px)
2022-03-08 15:55:41 +01:00
opacity: 0
// Real animation begins here
2%
transform: translateY(800px)
2022-03-08 15:55:41 +01:00
opacity: 1
100%
transform: translateY(0)
2022-03-08 15:55:41 +01:00
opacity: 1
=keyframes-vex-slidedown
@keyframes vex-slidedown
2022-03-08 15:55:41 +01:00
0%
transform: translateY(0)
2022-03-08 15:55:41 +01:00
100%
transform: translateY(800px)
2022-03-08 15:55:41 +01:00
=keyframes-vex-flipin-horizontal
@keyframes vex-flipin-horizontal
2022-03-08 15:55:41 +01:00
0%
opacity: 0
transform: rotateY(-90deg)
2022-03-08 15:55:41 +01:00
100%
opacity: 1
transform: rotateY(0deg)
2022-03-08 15:55:41 +01:00
=keyframes-vex-flipout-horizontal
@keyframes vex-flipout-horizontal
2022-03-08 15:55:41 +01:00
0%
opacity: 1
transform: rotateY(0deg)
2022-03-08 15:55:41 +01:00
100%
opacity: 0
transform: rotateY(90deg)
2022-03-08 15:55:41 +01:00
// Spinner animations
=keyframes-vex-rotation
@keyframes vex-rotation
2022-03-08 15:55:41 +01:00
0%
transform: rotate(0deg)
2022-03-08 15:55:41 +01:00
100%
transform: rotate(359deg)
2022-03-08 15:55:41 +01:00
// Button animations
=keyframes-vex-pulse
@keyframes vex-pulse
2022-03-08 15:55:41 +01:00
0%
box-shadow: inset 0 0 0 300px transparent
2022-03-08 15:55:41 +01:00
70%
box-shadow: inset 0 0 0 300px rgba(255, 255, 255, .25)
2022-03-08 15:55:41 +01:00
100%
box-shadow: inset 0 0 0 300px transparent