Skip to content

Keyframe support #104

Closed
Closed
@ayroblu

Description

@ayroblu

Is your feature request related to a problem? Please describe.
Hey just wondering if you support keyframes as they're transformed by css-modules too.

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
import React from 'react';
import styles from './MyComp.module.css';

const MyComp: React.FC = () => {
  return (
    //                                           Error here \/\/\/\/
    <div style={{animation: `3s linear 1s infinite running ${styles.fadeIn}`}} />
  );
}

Describe the solution you'd like
Support keyframe syntax

Describe alternatives you've considered
// ts-ignore ?

or:

import React from 'react';
import styles from './MyComp.module.css';

const MyComp: React.FC = () => {
  return (
    <div style={{animation: `3s linear 1s infinite running ${(styles as any).fadeIn}`}} />
  );
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions