question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

While I’m in here, would you mind if I added one more util to the library? This one would be for transitioning state along cubic bezier curves. Below is an example of what I’m proposing…

<template>
  <div>
    <input v-model.number="baseNumber" /> {{ number }}
  </div>
</template>

<script>
export default {
  setup() {
    const baseNumber = ref(0)

    const number = useStateTransition(baseNumber, {
      duration: 1000,
      steps: 30, // probably a reasonable default, but allows for custom framerates
      transition: [0.77, 0, 0.175, 1] // maybe have aliases like 'easeInOutQuart'?
    })

    return { baseNumber, number }
  }
}
</script>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
scottbedardcommented, Mar 23, 2020

Awesome, thanks for letting me wedge those two utils into this library 😄

1reaction
scottbedardcommented, Mar 22, 2020

I don’t think it’s necessary to pull in additional libraries. I’ve thrown together a proof of concept that I can push up in just a few minutes, just cleaning some things up right now. If you look at it and decide you’d rather use a library like Tween, no worries, just go ahead and close the PR when I open it 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

EASE Login
Picutre of State Capitol. EASE Logo. User. Password. Language. Client. Sign InSign In. Forgot Password? Arkansas Department of Finance and Administration.
Read more >
State by State Coronavirus-Related Restrictions - AARP
Most states across the country are dropping COVID-related restrictions as cases drop. Here is a guide to what's going on in each state....
Read more >
COVID lockdown: Which states have restrictions ... - USA Today
Capacity restrictions at various businesses and public spaces were eased and limits on mass gatherings were lifted in March 2021. Stay-at-home order: Started ......
Read more >
See Reopening Plans and Mask Mandates for All 50 States
All across the country, mask mandates have eased, restrictions have lifted and most states have gone back to business as usual. It appears...
Read more >
State of Ease - HeartMath
Because we intuitively sense that the state of ease helps us to get back in our heart which helps to re-stabilize the mind...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found