이것은 SVG를 처음 사용하는 것으로 화살표가있는 애니메이션 선 그래프를 만들 수 있는지 알고 싶습니다. 화살표가없는 움직이는 선 그래프, 화살표가있는 애니메이션이 아닌 선 그래프, 화살표가있는 움직이는 직선의 여러 예제를 발견했지만 정확히 내가 원하는 것은 아닙니다. 아래에 나와있는 일부 코덱 예제를 첨부했습니다. 이것이 가능한지 아는 사람이 있습니까/해결책이 있습니까? 대단히 감사하겠습니다!SVG 애니메이션 그래프 화살표
애니메이션 라인 실종 화살표 (요구 화살표) : http://codepen.io/alexandraleigh/pen/jVaObd
# HTML <div class="graph__wrapper"> <svg width="315px" height="107px" viewBox="0 0 315 107" version="1.1"> <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage"> <path d="M2.10546875,95.75 L40.5546875,68.3476562 L55.2109375,81.1796875 L65.2148437,76.3945312 L96.1835937,86.8320312 L131.023438,19.9414062 L142.15625,23.7226562 L183.605469,2.1953125 L211.007812,22.3320312 L234.320312,71.5664062 L234.667969,83.0039062 L244.019531,83.0039062 L247.105469,88.8320312 L312.695312,104.839844" id="Path-1" stroke="white" stroke-width="4" sketch:type="MSShapeGroup" class="path"></path> </g> </svg> </div> # CSS(Less) @import "lesshat"; @darkgrey: #303030; *{ box-sizing: border-box; } body{ background: @darkgrey; } .graph__wrapper{ width: 400px; margin: 30px auto; position: relative; svg{ position: absolute; margin: 36px 0px 0px 15px; } } .path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: dash 3s ease-in forwards; animation-iteration-count: 1; animation-delay: 1s; } @keyframes dash { to { stroke-dashoffset: 0; } } .description{ font-family: "Roboto"; color:lighten(@darkgrey, 50%); text-align: center; margin: 40px 0px; }
- 애니메이션은 화살표 직선 (경로에 여러 지점에서 정지 할 필요)
I # 1에서 # 2까지 경로 설명을 추가하려고 시도했지만 원하는 최종 그래프가 있고 애니메이션이 없습니다. http://codepen.io/alexandraleigh/pen/pNdgWR
- 나는 또한 # 1 # 2에서 화살표 마커를 추가했지만, 화살표 애니메이션하지 않습니다
나는 또한 플러그인과 같은 http://snapsvg.io/을 사용하여 열려있어하지만, 내 상황을 돕는 실제 사례를 보지 못했습니다.
이 http://stackoverflow.com/questions/40864442/svg-progressbar-의 중복 것 같다 :-(조만간 어떤 식 으로든 당신의 코드를 다시 작성해야합니다 animation-with-start-circle/40865930보다 많거나 적습니다. 원 대신 삼각형을 사용하려는 경우를 제외하고는. –