1

I want to overwrite the values in Keyframes using JQuery

Here my Code:

.v5Container { 
    background: #ffffff; 
    position: relative;
    transform-origin: left top 0;
    z-index: 101; 
    animation: 2s linear 0s normal none 1 formAnimate;
}
 @keyframes formAnimate {
    0% {transform: rotateY(-90deg); opacity:0;}
    100% {transform: rotateY(0deg); opacity:1;}
}

I want to overwrite this rotateY() and opacity value using JQuery.

pavel
  • 26,538
  • 10
  • 45
  • 61
Ragavan
  • 19
  • 3

1 Answers1

0

There is this: Set Webkit Keyframes Values Using Javascript Variable In the fiddle included in his answer - you can see how to get the CSS-Keyframe and change it.

Maybe a better solution: programmatically changing webkit-transformation values in animation rules

Community
  • 1
  • 1
DominikAngerer
  • 6,354
  • 5
  • 33
  • 60