채택완료

로딩아이콘 svg가 익스플로러에서 안되는 이유는...ㅠ

홈페이지에 로딩아이콘을 올리려고 svg 파일을 다운 받았습니다. 

크롬에서는 정상적으로 나오는데, 익스플로러에서는 뜨긴뜨는데 움직이지 않네요. 검색해보면, svg는 익스플러로 9.0이상에서는 지원된다고 봤는데.. 왜 안되는지 잘모르겠네요. 제 익스플로러 버전은 11.0입니다. 엣지에서도 마찬가지로 안보입니다. 조언을 좀 부탁드립니다ㅠ

Copy
<!DOCTYPE html>
<html>
<head>로딩아이콘 테스트
</head>
<body>

<div style="background:gray;">


<svg class="lds-spinner" width="200px"  height="200px"  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" style="background: none;"><g transform="rotate(0 50 50)">

      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff">

        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.9166666666666666s" repeatCount="indefinite"></animate>

      </rect>

    </g><g transform="rotate(30 50 50)">

      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff">

        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.8333333333333334s" repeatCount="indefinite"></animate>

      </rect>

    </g><g transform="rotate(60 50 50)">

      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff">

        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.75s" repeatCount="indefinite"></animate>

      </rect>

    </g><g transform="rotate(90 50 50)">

      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff">

        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.6666666666666666s" repeatCount="indefinite"></animate>

      </rect>

    </g><g transform="rotate(120 50 50)">

      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff">

        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.5833333333333334s" repeatCount="indefinite"></animate>

      </rect>

    </g><g transform="rotate(150 50 50)">

      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff">

        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.5s" repeatCount="indefinite"></animate>

      </rect>

    </g><g transform="rotate(180 50 50)">

      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff">

        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.4166666666666667s" repeatCount="indefinite"></animate>

      </rect>

    </g><g transform="rotate(210 50 50)">

      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff">

        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.3333333333333333s" repeatCount="indefinite"></animate>

      </rect>

    </g><g transform="rotate(240 50 50)">

      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff">

        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.25s" repeatCount="indefinite"></animate>

      </rect>

    </g><g transform="rotate(270 50 50)">

      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff">

        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.16666666666666666s" repeatCount="indefinite"></animate>

      </rect>

    </g><g transform="rotate(300 50 50)">

      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff">

        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.08333333333333333s" repeatCount="indefinite"></animate>

      </rect>

    </g><g transform="rotate(330 50 50)">

      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff">

        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="0s" repeatCount="indefinite"></animate>

      </rect>

    </g></svg>


</div>

</body>
</html>

답변 1개 / 댓글 3개

채택된 답변
+20 포인트

크로스브라우징 힘든 작업이죠 ㅠㅠ

제 컴에선 문제없이 동작되는데 (익스11),

다른 환경의 같은 익스11 버전의 컴인데 안된다고 연락이와서,

저는 keyframe 이용해서 움직이게 만들었습니다.

답변에 대한 댓글 3개

키프레임으로 한다는 건 css로 하는건가요?
네 맞습니다!
css 에서 해당 class 에 animation 이름 지정해주고, @keyframes animation명 { } 으로 똑같이 만드실 수 있습니다.
자세한건 구글검색해보시면 사용법 자세히 있습니다 ^^
그렇군요. 감사합니다.

답변을 작성하려면 로그인이 필요합니다.