Skip to content

Is it possible to add animation like bounce? #587

Open
@victorpavlenko

Description

@victorpavlenko

Is it possible to add animation like bounce?
I try to add some code:

 & .ReactModal__Content {

        &--after-open {
          animation-name: bounceIn;
          animation-duration: 450ms;
          animation-timing-function: linear;
          animation-fill-mode: forwards;
          opacity: 1;
        }
}
@keyframes bounceIn{
   0%{
     opacity: 0;
     transform: scale(0.3) translate3d(0,0,0);
   }
   50%{
     opacity: 0.9;
     transform: scale(1.1);
   }
   80%{
     opacity: 1;
     transform: scale(0.89);
   }
   100%{
     opacity: 1;
     transform: scale(1) translate3d(0,0,0);
   }
 }

But its doesnt work

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions