emotion.sh keyframes
/** @jsx jsx */
import { jsx, css, keyframes } from '@emotion/core'
const bounce = keyframes`
from, 20%, 53%, 80%, to {
transform: translate3d(0,0,0);
}
40%, 43% {
transform: translate3d(0, -30px, 0);
}
70% {
transform: translate3d(0, -15px, 0);
}
90% {
transform: translate3d(0,-4px,0);
}
`
render(
<div
css={css`
animation: ${bounce} 1s ease infinite;
`}
>
some bouncing text!
</div>
)/** @jsx jsx */
import { css, keyframes } from '@emotion/css'
const bounce = keyframes({
'from, 20%, 53%, 80%, to': {
transform: 'translate3d(0,0,0)'
},
'40%, 43%': {
transform: 'translate3d(0, -30px, 0)'
},
'70%': {
transform: 'translate3d(0, -15px, 0)'
},
'90%': {
transform: 'translate3d(0, -4px, 0)'
}
});
render(
<img
src={logoUrl}
className={css({
width: 96,
height: 96,
borderRadius: '50%',
animation: `${bounce} 1s ease infinite`,
transformOrigin: 'center bottom'
})}
/>
)
Also in JavaScript:
- react starter kit 2020
- javascript list class properties
- javascript forever loop
- adding event listener keypress event in javascript
- popper.js install npm
- js create json array
- get epoch timestamp js
- how to access router from the store vue
- electron download
- what is nodes and hubs in selenium grid
- Should I learn Javascript?
- javascript cash register
- To set the text of button using Jquery
- javascript range slider
- android studio react native plugins
- filter
- image popup js close button
- dynamic loop variable .each create hash javascript
- javascript canvas 1px line
- strapi cloudinary how to use
- vuejs show content on loaded
- React microphone
- square root in javascript
- total cost example in javascript with function