Giter VIP home page Giter VIP logo

Comments (3)

mattgperry avatar mattgperry commented on May 18, 2024

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 paths 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.

Emasoft avatar Emasoft commented on May 18, 2024

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.

mattgperry avatar mattgperry commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.