Skip to main content
Inspiring
September 21, 2020
Question

how to start OAM canvas animation when in browser viewport

  • September 21, 2020
  • 3 replies
  • 284 views

Hello all,

 

I've created an animation that I need to start when in the viewport. It's a very simple function that I only need the animation to play. I may have missed a solution as I have searched this forum. 

 

Any guidance will be appreciated. Thanks all

This topic has been closed for replies.

3 replies

kdmemory
Inspiring
September 25, 2020

The sample for a client where I used in-view.js is here (url).

There are two Animate Canvas animations which start playing (and rewind accordingly) when they enter the viewport.

Maybe you can sniff it out.

Klaus

kdmemory
Inspiring
September 25, 2020

Hi deanflys

look into in-view.js. I did it once with Animate HTML5-Canvas animations but it's a while ago. Can't explain the details from the top of my head.

Klaus

kglad
Community Expert
Community Expert
September 21, 2020

by default, it will play when opened (eg, control>test in animate).

 

what "viewport" are you looking at when you fail to see this?