svg-animate

SVG path animation access data in firefox not working

≡放荡痞女 提交于 2020-02-02 16:03:01
问题 I have created a Hourglass animation with SVG. It works fine in chrome && opera, but has some issues on firefox. The Hourglass could be paused and then later on resumed. Now in chrome/opera I can read the current value of d and then to apply it for the animation element on resume, but in firefox the attribute isn't being updated and therefor I can't assign the current attribute value to the resumed element. I tried: Using the Element.animate() API but it is also not changing the current value

Which SVG/SMIL DOM element has the `beginElement` method?

扶醉桌前 提交于 2020-02-02 10:58:29
问题 Ultimately this is for a Kiosk-style app (using jQuery 1.6.4) that will run in Firefox, so answers can be Firefox-specific. I'm trying to make a animated SVG, but I'm trying to animate it by dynamically inserting SMIL. I've seen nothing that suggests it cannot be done, and both http://satreth.blogspot.ch/2013_01_01_archive.html and http://srufaculty.sru.edu/david.dailey/svg/SMILorJavaScript.svg seem to indicate that it can be done. The problem as I understand it is that I need to call the

Starting an object to move from a random point along an SVG path

允我心安 提交于 2020-01-15 01:49:27
问题 Here trying to get some insight into SVGs. Is there any way of moving a circle along an SVG path, where the circle starts moving from a specific point determined by the length of the path? For instance, when the object reaches the end, it starts again from the beginning. What attributes to use to get the circle to move from a random point, for example, starting from 20 not 0 to 100 ? There is a direct from and to in SVG, but I am not certain how to use it properly. Also, I found keytimes to

How to move svg elements over html5 video and control video playback at the same time?

主宰稳场 提交于 2020-01-14 20:48:19
问题 <video id="video" width="600px" height="400px" autoplay playinline muted loop controls src="test.mp4"> </video> <svg id="svg" width="600" height="400" style="position: absolute; left:8px; background:gray;opacity:0.5"> </svg> <script> let svg_element = document.getElementById("svg"); let svgns = "http://www.w3.org/2000/svg"; setInterval(() => { let player_element = document.createElementNS(svgns, 'circle'); player_element.setAttribute("id", "player"); player_element.setAttribute("cx", 100);

How to move svg elements over html5 video and control video playback at the same time?

China☆狼群 提交于 2020-01-14 20:47:10
问题 <video id="video" width="600px" height="400px" autoplay playinline muted loop controls src="test.mp4"> </video> <svg id="svg" width="600" height="400" style="position: absolute; left:8px; background:gray;opacity:0.5"> </svg> <script> let svg_element = document.getElementById("svg"); let svgns = "http://www.w3.org/2000/svg"; setInterval(() => { let player_element = document.createElementNS(svgns, 'circle'); player_element.setAttribute("id", "player"); player_element.setAttribute("cx", 100);

How to move svg elements over html5 video and control video playback at the same time?

主宰稳场 提交于 2020-01-14 20:47:08
问题 <video id="video" width="600px" height="400px" autoplay playinline muted loop controls src="test.mp4"> </video> <svg id="svg" width="600" height="400" style="position: absolute; left:8px; background:gray;opacity:0.5"> </svg> <script> let svg_element = document.getElementById("svg"); let svgns = "http://www.w3.org/2000/svg"; setInterval(() => { let player_element = document.createElementNS(svgns, 'circle'); player_element.setAttribute("id", "player"); player_element.setAttribute("cx", 100);

Inner curved transparent shape with two sides rounded div

独自空忆成欢 提交于 2020-01-14 05:07:50
问题 I'm trying to create inner curved transparent shape,like this but i have trouble with creating this kind of curved shape,this is what i am done` body { background-color: #00a4ffb3; } .parent_wrapper { height: 250px; width: 250px; position: relative; background-color: white; } .tab-indicator { position: absolute; background-color: #000000; width: 50px; height: 60px; border-radius: 50px 0 0 50px; z-index: 1; transform: translateY(0px); right: 0px; transition: transform .3s ease-out; } .tab

How do I clockwise animate Pie Chart onLoad in SVG

旧街凉风 提交于 2020-01-05 04:09:12
问题 I am stuck with pie chart which should animate clockwise onLoad. Here, is my pie chart fiddle I need this animation to work with brezier curve paths, for instance, <path d="M 276 63.03 C 329.93 63.03 381.86 78.24 421.4 105.63 L 276 222.79 M 276 63.03" /> I am also aware that, it can be achieved using snap.svg library but is unable workout in this case. Any help is appreciated. Thanks in advance! 回答1: You can use a nested animate and change some attribute with a progressive delay. In this

Animate Path in Internet Explorer

旧时模样 提交于 2020-01-02 04:40:51
问题 Is there any possiblity to "Fly-In" an svgpath in IE 11? Like @keyframes fadeInP { from { stroke-dashoffset:1000; } to { stroke-dashoffset: 0; } } .animate { animation: fadeInP 10s linear infinite; } For <svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 400 400"> <path stroke-width='8' class = "animate" fill='none' stroke="#ffffff" d="M 0,0 C 100,10 200,80 300,15 " /> </svg> This works in FF, but cant find any solution in the web to

Live drawing of a line in D3.js [closed]

隐身守侯 提交于 2019-12-29 03:33:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm just started with D3.js, and I want to create something like what we do in Paint to draw a line. The steps are should be the same: - Click on a point on the screen - Drag to the destination to create a line. What I'm having troubles now is when you drag your mouse to the destination, the line should move