Skip to main content

Questions tagged [easing]

Easing functions specify the rate of change of a parameter over time. Use this tag when you are using a function to transition the state of an object over a period of time.

Filter by
Sorted by
Tagged with
7 votes
4 answers

Generate points for smooth movement between two given points

This is one of the methods in a project for generating points between two given points. We add points of route with a 25ms delay in an array and a camera on Google Maps is always at the last point. So ...
Waleed's user avatar
  • 171
5 votes
2 answers

Simple animation method with requestAnimationFrame code structure

I'm writing a animate method to perform DOM animations. I know there are a lot of libraries out there that already does that (and I use some ideas of them) but I usually prefer writing my own code to ...
lolol's user avatar
  • 151
4 votes
2 answers

Custom UIElement Animations

Having fancy animations in WPF is quite nice so I tried to implement a generic fading animation for UIElements which I use for the Popups in my application. I was ...
brunnerh's user avatar
  • 335
4 votes
2 answers

Delay and queue animation in a function - how can I optimise this by removing duplicate code?

I have this script that moves a box around the screen and the loops the second part of the movement. I have altered the code to drop another three boxes (4 in total) into the animation so the boxes ...
David Ingledow's user avatar
4 votes
1 answer

Improving jQuery scrolldown animations

I'm pretty new to client side scripting and I'm still learning. I've written this JS plugin which animates blocks of HTML (fade-in from left/top/right/bottom) as you scroll down the page. Everything ...
user74109's user avatar
4 votes
1 answer

Executing a sequence of actions over time in Unity

This script executes a sequence of actions over time and is based on the methods exposed by the UrhoSharp framework. I am new to Unity, but well acquainted with C# so I know what I'm doing for the ...
Imagin's user avatar
  • 161
2 votes
1 answer

Built a Vector2 class with easing functions, that can be unpacked

DracoDaine's user avatar
2 votes
1 answer

Scrolling with an easing function

I wanted to write a function that when invoked, will scroll the page downwards in a smooth fashion. Comments and criticism welcome. I don't like, for example that determining whether it is done is ...
52d6c6af's user avatar
  • 672
2 votes
2 answers

jQuery animation procedural approach, suggestions need

I'm kinda worried that the way I did my animation intro is a bit too heavy and is not optimized. Please review and let me know your thoughts. ...
Pennf0lio's user avatar
  • 151
2 votes
0 answers

Two Angular animations for modal dialogs

I'm using Ionic 4 and Angular animations to animate modals. I created the following two functions that control the animations but they share a lot of repeated code. Is there a way I can clean these up ...
Joe Scotto's user avatar
1 vote
1 answer

Javascript looping fader animation

Here's a small module I've written that implements an animation which fades through the child elements in a container div on a continual loop. I realise I could have done this way quicker using ...
samfrances's user avatar