Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: Two SUCESSIVE animations on the same element - how? Date: Sun, 10 Nov 2019 00:51:52 +0100 Lines: 15 Message-ID: References: <54ce4120-6481-4ad8-9e1a-2fe545d32705@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net c8Z0x33HzQhwdAk+jvzu4QrRMG1Y4Ovwl9kGs+0x/xaEyqNisT Cancel-Lock: sha1:1Taik4P0xf8OUAB1YqyypBmki6Y= In-Reply-To: <54ce4120-6481-4ad8-9e1a-2fe545d32705@googlegroups.com> Xref: csiph.com comp.lang.javascript:37738 groovee@cyberdude.com: > OK, so say I have a green box on my screen which I want to start off > at the top left, move to the top right and THEN from there to the > bottom right. How do I do this? (this is just an example). You don't need JavaScript, you can just define an animation which does multiple changes in sequence. However you can use an event listener to do something at the end of one animation as well: For example: -- Arno Welzel https://arnowelzel.de