Fabric.js easeInExpo() Method Last Updated : 25 Mar, 2021 Comments Improve Suggest changes Like Article Like Report In games or animations, there are many moving objects which can move them from point A to B in a linear fashion, but after applying the easing function, it can make it look more natural. An easing function says how animation progress. In this way, a straight motion can take an interesting shape. Easing functions specify the rate of change of a parameter over time. It is whose equations which make something move slowly at the start and speed up, or slow down near the end. The most common set of easing equations come from Robert Penner's book and webpage. The easeInExpo() method is used for exponential in-easing. Syntax: easeInExpo(t, b, c, d) Parameters: This method accepts four parameters as mentioned above and described below: t: This parameter holds the specified time when animation will start. For example, if value of t is 0, it means animation is just started.b: This parameter holds the specified starting position of the object on x-axis. For example, if value of b is 10, it means the starting position of the objects on x-coordinate is 10.c: This parameter holds the specified change in value for the object. For example, if value of c is 30, it means, the object has to move 30 to the right, ending at 40.d: This parameter holds the specified duration of the whole process. For example, if the value of d is 2, it means, the object has 2 second to perform this motion from 10 to 40. Return Value: This method returns the eased position of the object i.e., the position of the object at a specific time. Example 1: HTML <!DOCTYPE html> <html> <head> <!-- Adding the FabricJS library --> <script src= "https://cdnjs.cloudflare.com/ajax/libs/fabric.js/3.6.2/fabric.min.js"> </script> </head> <body> <script type="text/javascript"> // Initializing easeInExpo() function function easeInExpo(t, b, c, d) { return (t == 0) ? b : c * Math.pow( 2, 10 * (t / d - 1)) + b; } // Calling the easeInExpo() function over // the specified parameter values console.log(fabric.util.ease .easeInExpo(1, 2, 3, 4)); </script> </body> </html> Output: 2.01657281518406 Example 2: HTML <!DOCTYPE html> <html> <head> <!-- Adding the FabricJS library --> <script src= "https://cdnjs.cloudflare.com/ajax/libs/fabric.js/3.6.2/fabric.min.js"> </script> </head> <body> <script type="text/javascript"> // Initializing easeInExpo() function function easeInExpo(t, b, c, d) { return (t == 0) ? b : c * Math .pow(2, 10 * (t / d - 1)) + b; } // Initializing the parameters // with its values var t = 5; var b = 10; var c = 40; var d = 12; // Calling the easeInExpo() function over // the specified parameter values console.log(fabric.util.ease .easeInExpo(t, b, c, d)); </script> </body> </html> Output: 10.701538780193358 Comment More infoAdvertise with us Next Article Fabric.js easeInBounce() Method K Kanchan_Ray Follow Improve Article Tags : JavaScript Web Technologies HTML-Tags Fabric.js JavaScript-Methods +1 More Similar Reads Fabric.js easeInOutExpo() Method In games or animations, there are many moving objects which can move them from point A to B in a linear fashion, but after applying an easing, or easing function, it can make it look more natural. An easing function says an animation of how to progress. In this way, a straight motion can take an int 3 min read Fabric.js easeOutExpo() Method In animation and games, it can be seen that many objects are moving from one point to another linearly. But after using the Easing function, the object's way of progressing can take a different natural and interesting shape. Easing functions is the rate of change of a parameter over time. It is that 3 min read Fabric.js easeInSine() Method In games or animations, there are many moving objects which can move them from point A to B linearly, but after applying an easing, or easing function, it can make it look more natural. An easing function says an animation of how to progress. In this way, a straight motion can take an interesting sh 3 min read Fabric.js easeInBounce() Method In games or animations, there are many moving objects which can move them from point A to B in a linear fashion, but after applying an easing, or easing function, it can make it look more natural. An easing function says an animation of how to progress. In this way, a straight motion can take an int 3 min read Fabric.js easeInQuad() Method In games or animations, there are many moving objects which can move them from point A to B in a linear fashion, but after applying an easing, or easing function, it can make it look more natural. An easing function says an animation of how to progress. In this way, a straight motion can take an int 3 min read Fabric.js easeInCirc() Method In games or animations, there are many moving objects which can move them from point A to B in a linear fashion, but after applying an easing, or easing function, it can make it look more natural. An easing function says an animation of how to progress. In this way, a straight motion can take an int 3 min read Like