@chakra-ui/react#keyframes JavaScript Examples
The following examples show how to use
@chakra-ui/react#keyframes.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: animations.js From interspace.chat with GNU General Public License v3.0 | 6 votes |
revealUp = keyframes`
from {
// transform: translate3d(0, 70px, 0);
opacity: 0;
}
to {
// transform: translate3d(0, 0, 0);
opacity: 1;
}
`
Example #2
Source File: animations.js From interspace.chat with GNU General Public License v3.0 | 6 votes |
revealRight = keyframes`
from {
// transform: translate3d(-70px, 0, 0);
opacity: 0;
}
to {
transform: translate3d(0, 0, 0);
opacity: 1;
}
`
Example #3
Source File: animations.js From interspace.chat with GNU General Public License v3.0 | 6 votes |
revealLeft = keyframes`
from {
// transform: translate3d(70px, 0, 0);
opacity: 0;
}
to {
// transform: translate3d(0, 0, 0);
opacity: 1;
}
`
Example #4
Source File: components.js From idena-web with MIT License | 6 votes |
export function Spinner({size = 8}) {
const spin = keyframes`
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
`
return (
<>
<Box
display="inline-block"
border="4px solid"
borderColor="blackAlpha.100"
borderLeftColor="blue.500"
borderRadius="50%"
w={size}
h={size}
animation={`${spin} 1.2s linear infinite`}
></Box>
</>
)
}
Example #5
Source File: components.js From idena-web with MIT License | 5 votes |
escape = keyframes`
from { right: 0; }
to { right: 100%; }
`