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

What is Framer? Join the Community
Return to index
Chandan Manohar Raikar
Posted Feb 03 - Read on Facebook

How can i perform animation at the end of YouTube video?
here i have a layer which has youtube video. when the youtube video ends playing i want to perform some actions. how can i do that?

insetvideo = new Layer({y:0,width: v1layer.width - 30, height:v1layer.height-30, backgroundColor: "",superLayer:v1layer})
insetvideo.html = "<iframe width='560' height='400' src='' frameborder='0' allowfullscreen></iframe>"
insetvideo.ignoreEvents = false

insetvideo.on("ended", function() {
location.href = ""


Jonas Treub

Never tried it myself but this info might help:

Read the entire post on Facebook