Comments (6)
Thanks for reporting this.
Are we talking about the animation at https://nbedos.github.io/termtosvg/ or the one at https://github.com/nbedos/termtosvg ?
from termtosvg.
It's indeed not working on Safari iOS 13.4.
from termtosvg.
I don't have access to a machine running macOS so unfortunately I can't do much about it.
from termtosvg.
The issue is specific to this SVG, the console reports:
TypeError: document.getElementById("screen_view").animate is not a function. (In 'document.getElementById("screen_view").animate(
termtosvg_vars.transforms,
termtosvg_vars.timings
)', 'document.getElementById("screen_view").animate' is undefined)
Global Code — awesome_window_frame_js.svg:193
Which indicates the issue lay in this browser API. You can enable it in the browser via Develop / Experimental Features / Web Animations. Tested and confirmed it works with this feature enabled in Safari 12.0.3.
from termtosvg.
I noticed the same problem and tracked it down. It seems Safari doesn't support scripting in svg when used in an img
tag, probably due to security considerations; but scripting is allowed when used in an object
tag.
Trivial reproduction:
<img src="https://nbedos.github.io/termtosvg/examples/awesome_window_frame_js.svg">
<object data="https://nbedos.github.io/termtosvg/examples/awesome_window_frame_js.svg">
The upper one does not animate, the lower one does.
Not sure what can be done about it.
from termtosvg.
https://nbedos.github.io/termtosvg/ works in safari
https://github.com/nbedos/termtosvg does not animate in safari
there were some changes recently to safari that I may now have https://webkit.org/blog/10266/web-animations-in-safari-13-1/
which I probably didn't have enabled when I first issued this bug
from termtosvg.
Related Issues (20)
- With CSS animation one frame can bleed into the previous frame HOT 3
- Generate ligature glyphs. HOT 1
- Optimize SVG output HOT 2
- Suggestion: Width 100% HOT 2
- Color issues and configuration HOT 12
- Remove "exit" from svg animation HOT 8
- Color issues in bold text in version 1.0.0
- Add support for ttyrec recording format
- jerky frames when viewing with Safari HOT 4
- Allow invocation through runpy HOT 1
- Firefox: slider in window_frame_js template misplaced and moving to the wrong direction, when SVG is in an HTML file HOT 1
- JavaScript themes without JavaScript enabled
- Cutting frames from resulting SVG
- Template window_frame_js does not work in GitHub HOT 1
- Can I install TermToSVG on Windows?
- Blink does not blink
- Idle timeout expected as int, but is float HOT 3
- Capture and preserve xterm title sequences. HOT 1
- build standalone binary HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termtosvg.