Giter Club home page Giter Club logo

Comments (8)

koenbok avatar koenbok commented on July 21, 2024

Yup it's on the roadmap. The only thing we need to add is something that converts our numeric animator output to a css value (like rgba(x,x,x,x)).

from framer.

peteschaffner avatar peteschaffner commented on July 21, 2024

Will look into this as said feature would be invaluable for me. Only thing holding me back so far is the learning curve associated with reading/writing CS. @koenbok, any thoughts on this subject? I've noticed a disconnect where all docs and such seem to be vanilla while the source is CS.

from framer.

koenbok avatar koenbok commented on July 21, 2024

Yeah for new users we target vanilla but Framer itself is in CS.

from framer.

jenbennings avatar jenbennings commented on July 21, 2024

I'd love this feature.

from framer.

peteschaffner avatar peteschaffner commented on July 21, 2024

Wow there is a lot to consider to get this feature working. My first pass attempt has been to get [single] numeric property values animating (i.e. border-radius, border-width, etc.), but even there you have to consider unit conversion. I wonder if I should step back and reassess.

The goal here is to animate CSS properties. Presumably we want to be able to animate anything that can be animated via CSS transitions/animations. I wonder if "adding back in the css keyframe animation backend," per your plans todo list, would be the best way to solve this? Otherwise I think we will have to spend a lot of time working on converters and interpolators.

Also another possibility would be to look into this shim for the future web animations spec.

@koenbok what are your thoughts on all of this?

from framer.

koenbok avatar koenbok commented on July 21, 2024

Yes, it is basically writing a whole bunch of converters, some pretty complicated (for example to tween an rgb value).

I'm pretty sure there are a few frameworks out there that solved this. I'd look at their approach. I also remember that webkit has a lot of value converters built in that we could maybe repurpose.

I'll have to look into the animation spec, but I think they don't allow custom (spring) curves.

from framer.

cleercode avatar cleercode commented on July 21, 2024

Might be an appropriate use for a sort of bridge/dependency with velocity.js? Have you considered any sort of relationship between these projects, Koen?

Alternatively, there's a hacky way to drive physics-based animations using Web Animations mentioned here: http://lists.w3.org/Archives/Public/public-fx/2014AprJun/0073.html

One approach is to set up and pause animations that drive position and rotation, then update progress through those animations by setting the player's currentTime.

from framer.

nvh avatar nvh commented on July 21, 2024

Most things are animatable through Framer now.

from framer.

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.