mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Added Keyframes to InterpolationValue to support the new keyframes
This commit is contained in:
Vendored
+1
@@ -37,6 +37,7 @@ export type InterpolationValue =
|
||||
| number
|
||||
| Styles
|
||||
| FalseyValue
|
||||
| Keyframes
|
||||
| StyledComponentClass<any, any>;
|
||||
export type SimpleInterpolation =
|
||||
| InterpolationValue
|
||||
|
||||
@@ -97,6 +97,14 @@ const fadeIn = keyframes`
|
||||
}
|
||||
`;
|
||||
|
||||
const animationRule = css`
|
||||
${fadeIn} 1s infinite alternate;
|
||||
`;
|
||||
|
||||
const ComponentWithKeyframe = styled.div`
|
||||
animation: ${animationRule};
|
||||
`;
|
||||
|
||||
const theme = {
|
||||
main: 'mediumseagreen',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user