Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

fade in from black #35

Open
MarcDAFrame opened this issue Nov 2, 2019 · 0 comments
Open

fade in from black #35

MarcDAFrame opened this issue Nov 2, 2019 · 0 comments

Comments

@MarcDAFrame
Copy link

how do you fade in from black?

I tried using backgroundColor but it doesn't work

...
import Radium, { StyleRoot } from 'radium';
import { fadeIn } from 'react-animations'
...
const animations = {
  fadein: {
    animation: 'x 3s',
    animationName: Radium.keyframes(fadeIn, 'bounce'),
    backgroundColor: 'black',
  }
}
...
<StyleRoot>
   <img style={animations.fadein as React.CSSProperties} src={background_img} className={style.calltoaction_image} />
</StyleRoot>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant