Comments (3)
Yeah so this would be amazing, obviously. You can currently morph SVG shapes using this technique: https://css-tricks.com/svg-shape-morphing-works/, animating a path
s d
attribute between two paths with the same number of points.
However the morphSVG plugin looks like a massive undertaking - I might be wrong on this but I don't have any idea how its done and I think the relatively niche appeal of the feature compared to others in the roadmap means it isn't currently a priority.
So it's something I'd love to have but not something I can imagine being able to make within the next 3-6 months.
from popmotion.
Niche appeal? I don't think so. I think that this is going to br the next big thing on the web. All animations will be soon made with SVG Morphing. You just have to draw a couple of keyframes, and the morphing takes care of the rest. For example I can draw a "button up" and a "button down" state for a control, and the morphing generates the animation adding the inbetween frames at 60 fps. The same for switch on/switch off, selected/deselected, checkboxes, progress bars, etc. I think that thanks to this the web is going to become very animated very soon. You should implement this in popmotion asap IMO.
from popmotion.
Well, we'll see. I think the web is going to be very animated soon, too. I haven't played with the MorphSVG plugin but I'm not sold on the number of use cases you describe. For instance, button up/down - the most obvious and nature thing is to rotate the arrow. But morphSVG will look very off in the effects it produces there. The same with checkboxes - the most obvious thing to do there is use drawPath
, morph will look weird.
At the end of the day it's not a magic bullet, it's very hard to do, and I have limited time to work on this so I simply have to pursue a "bang for buck" strategy here. I do want this functionality, it just isn't priority number 1.
Finally I'll point out that Popmotion is fully open source, very extendable and you probably know exactly as much about SVG path maths as me, so any help in this area would be incredibly appreciated :)
from popmotion.
Related Issues (20)
- Are there examples? "Green boxes"? HOT 1
- Animation sequence HOT 1
- 'action' is not exported from 'popmotion' HOT 1
- CDN link maybe not working HOT 1
- How to have more values in short duration? HOT 1
- Allow global override of Framesync loop
- Popmotion: React import { animate } from "popmotion"; fails HOT 2
- Popmotion: Animation duration stretched when using pixi.js Ticker as animation driver HOT 2
- Importing Popmotion via "/dist/popmotion.global.min.js" 404 Issue HOT 2
- Stuttering motion on Chrome and Edge
- popmotion 11.0.3 import not working (missing exports) HOT 4
- 一些建议
- Cannot compile in CRA@5
- primary use error by Vue HOT 2
- mixerFactory is not a function
- Modernize build target and eliminating tslib.
- Popmotion.io footer nav link HOT 1
- Pause and rewind capability HOT 7
- Popmotion: Different content on each Modal
- Is there a lifecycle event that can listen to the completion of each repetition?
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 popmotion.