Giter Club home page Giter Club logo

humpf's Introduction

Packages

List and manage all my packages

humpf's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

humpf's Issues

2 axis support

It will be good to have ability to specify dots in 2 axis (X, Y)

Using spring in a timeline wrapper help wanted

Hello and thank you for this great library.

I am using remotion for a project and I am trying to find a way to declare the animations like this:

// create a timeline to interpolate x with time
// note: frame will be used as time
const timeline = new Timeline()

timeline
  .startAt(0)  // x start at 0
  .add({ to: 10, duration: 20 })  // x will move from 0 to 10 in the next 20 frames 
  .add({ to: 5, duration: 10 }) // then from 10 to 5 in the next 10 frames
  .add({ to: 20, duration: 15 }) // then from 5 to 20 in the next 15 frames
  .add({ to: 0, duration: 30 }) // and then from 20 to 0 in the next 30 frames

// component in remotion
const Logo = () => {
  const frame = useCurrentFrame()
  const x = timeline.play(frame)
  
  return <Circle x={x} />
}

I am still unsure how all that can work, I managed to get a POC working with the spring function provided by remotion by offsetting the starting frame, but I see that humpf provide timeScale and timeStart.

I am not sure to understand how to chain springs together passing the end velocity of the previous spring to the next etc...
Could you give me some guidance?

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.