This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Sam Jang
Posted Jun 19 - Read on Facebook

Hey Frameristas!
I am currently prototyping an TV app.

I am currently stuck as I'm attempting to make the player resize smaller when there is 10 seconds left.

My code is as following.... Is there something wrong? :(

3 Comments

Mike Johnson

Looks like there's a double indent there, check that. Also try if time >= 10, since it may never hit 10 exactly on the nose. Also just print out the update time argument to make sure it's what you are expecting

Márcio Ribeiro

Hi Sam Jang, Idk why but I had more successful working with video in Framer while using the "video.player.ontimeupdate = ->" event, instead of the addListener. Also I would recommend you to create a status flag to avoid calling your animation repeatedly after your time conditional be true. I hope this example can help you: https://framer.cloud/NxjpD/

Sam Jang

Actually guys, I found few mistakes I had made after research... Finally it works with this code:

Read the entire post on Facebook