Skip to content

Animations/Font Face #2

Closed
Closed

Description

@geelen

Not sure how Aphrodite handles these (they have to be global), but currently, I don't.

Activity

  1. jossmac commented on Aug 19, 2016

    @jossmac

    Aphrodite accepts an object for the animationName:

    component: {
      animationName: {
          '0%': { opacity: 0 },
          '100%': { opacity: 1 },
        },
      animationDuration: '1s',
    },
    
  2. geelen commented on Sep 27, 2016

    @geelen
    MemberAuthor

    This is going to be done with an API like

    import styled, { keyframes } from 'styled-components'
    
    const animation = styled.keyframes`
      from { opacity: 0; }
      to { opacity: 1; }
    `
    
    const X = styled.div`
      animation: ${animation} 0.3s 0s both;
    `
  3. geelen commented on Sep 27, 2016

    @geelen
    MemberAuthor

    Dupe of #14

  4. added a commit that references this issue on Oct 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions