I 다음 키 프레임 믹스 인,하지만 잘못된 CSS 생성 될 것 같다말대꾸 키 프레임 애니메이션 믹스 인 생성 무효 CSS
@-webkit-keyframes $animationName {
0% {
opacity: 1;
}
33% {
opacity: 0;
}
66% {
opacity: 0;
}
100% {
opacity: 0;
}
}
@-moz-keyframes $animationName {
0% {
opacity: 1;
}
33% {
opacity: 0;
}
66% {
opacity: 0;
}
100% {
opacity: 0;
}
}
@-o-keyframes $animationName {
0% {
opacity: 1;
}
33% {
opacity: 0;
}
66% {
opacity: 0;
}
100% {
opacity: 0;
}
}
@keyframes $animationName {
0% {
opacity: 1;
}
33% {
opacity: 0;
}
66% {
opacity: 0;
}
100% {
opacity: 0;
}
}
대신의 키 프레임 이름을 갖는 여기
@mixin keyframes($animationName)
{
@-webkit-keyframes $animationName {
@content;
}
@-moz-keyframes $animationName {
@content;
}
@-o-keyframes $animationName {
@content;
}
@keyframes $animationName {
@content;
}
}
@include keyframes(icon-one) {
0% {
opacity: 1;
}
33% {
opacity: 0;
}
66% {
opacity: 0;
}
100% {
opacity: 0;
}
}
출력의 icon-one
의 경우 $animationName
입니다.
컴파일 된 CSS를 게시 할 수 있습니까? – Turnip
미안해, 미안하다 생각해 봤어 새크 작업을 청소했다, 나는 새소리를 제거하고 순수한 CSS를 추가했습니다 – Bakajuice
와우 덕분에, 모든 지금은 맑은 보이는 :) – Bakajuice