2016-06-21 5 views
1

누구든지 내가 뭘 잘못 볼 수 있습니까? 파이어 폭스에서 내 애니메이션 CSS 작업을하려고하지만 어떻게 든 작동하지 않는다. webkit를 인식하지 못합니다Mozilla에서 CSS 애니메이션이 작동하지 않습니다.

    .animatietekst { 
         -webkit-animation: scaling 1s 10 ease; 
         -webkit-animation-iteration-count: infinite; 
         -webkit-animation-direction: alternate; 
         -moz-animation: scaling 1s 10 ease; 
         -moz-animation-iteration-count: infinite; 
         -moz-animation-direction: alternate; 
        } 

        @-webkit-keyframes scaling { 
    from { 
     -webkit-transform: scale(0.96); 
    } 
    to { 
     -webkit-transform: scale(1); 
    } 
} 

        @-moz-keyframes scaling { 
    from { 
     -webkit-transform: scale(0.96); 
    } 
    to { 
     -webkit-transform: scale(1); 
    } 
} 
+0

사전 해제 수정? Firefox는 버전 16 이후로 수정되지 않은 지원을했습니다 : https://developer.mozilla.org/en-US/docs/Web/CSS/animation#Browser_compatibility – robertc

+0

'@ -moz에서 잘못된 webkit-'접두사를 사용하고 있지 않습니까? -keyframes' 코드 블록? – Finwe

+0

이'https : // css-tricks.com/almanac/properties/a/animation /' – Lucian

답변

3

파이어 폭스는 더 이상이

@keyframes scaling { 
     from { 
      transform: scale(0.96); 
     } 
     to { 
      transform: scale(1); 
     } 
    } 

.animatietekst { 
    -webkit-animation: scaling 1s 10 ease; 
    -webkit-animation-iteration-count: infinite; 
    -webkit-animation-direction: alternate; 
    animation: scaling 1s 10 ease; 
    animation-iteration-count: infinite; 
    animation-direction: alternate; 
    } 
와 함께 잘 작동합니다 moz 접두사를 필요로하지 않는 경우

@-moz-keyframes scaling { 
     from { 
      -moz-transform: scale(0.96); 
     } 
     to { 
      -moz-transform: scale(1); 
     } 
    } 

변환

+0

을 살펴 보셔야합니다. 고마워요! – annaneedshelp

관련 문제