State easing
See original GitHub issueWhile 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:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Awesome, thanks for letting me wedge those two utils into this library 😄
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 🙂