Share Posted October 8, 2015 I was wondering if there should be a config available for Bounce ease as well like the ones that are available in Elastic as well as Back eases. The use-case for example is to control the number of bounces as well as the amplitude, for lack of a better word i.e. the force with which it bounces back everytime it hits the floor. Example: jsFiddle. Thoughts? See the Pen by tahirahmed (@tahirahmed) on CodePen 2 Link to comment Share on other sites More sharing options...
Share Posted October 8, 2015 Very simple decay... See the Pen RNZmEO by osublake (@osublake) on CodePen A better way to calculate it... var amplitude = 90; var decay = 0.5; var freq = 1; y -= amplitude * Math.cos(freq * time * 2 * Math.PI) / Math.exp(decay * time); 4 Link to comment Share on other sites More sharing options...
Share Posted October 8, 2015 The configurable Bounce is a great suggestion. We have a long feature-list for easing enhancements and just need to find the time. 3 Link to comment Share on other sites More sharing options...
Share Posted October 8, 2015 Dont forget the squash and stretch .. codepen full mode: See the Pen EVXgGV by jonathan (@jonathan) on CodePen codepen editor mode: See the Pen EVXgGV by jonathan (@jonathan) on CodePen 7 Link to comment Share on other sites More sharing options...
Share Posted October 8, 2015 Yeah, it's a good suggestion Tahir. We've had some longer-term plans that will address this (and a lot more), but it's not a small undertaking. If you're patient, I think you'll be really pleased with what we eventually come up with 1 Link to comment Share on other sites More sharing options...
Author Share Posted October 9, 2015 @Jack, good to hear that. I'll wait of course Link to comment Share on other sites More sharing options...
Share Posted August 25, 2018 Three years later, wondering whether there's been any progress on this front? Link to comment Share on other sites More sharing options...
Share Posted August 25, 2018 Quote Three years later, wondering whether there's been any progress on this front? Kind of, now there is CustomBounce plugin that does a lot more than simple config. https://greensock.com/docs/Easing/CustomBounce 3 Link to comment Share on other sites More sharing options...
Share Posted August 25, 2018 CustomBounce is a perk of Club GreenSock membership (which I highly recommend): https://greensock.com/club You can always give it a try on CodePen: See the Pen OPqpRJ by GreenSock (@GreenSock) on CodePen Happy tweening and bouncing. 3 Link to comment Share on other sites More sharing options...
Share Posted August 25, 2018 Ah, OK thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now