Jump to content
Search Community

Video Banner

Pierre D. test
Moderator Tag

Go to solution Solved by Pierre D.,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hello everyone =) ,

 

I need some help with my banner (HTML5) .

 

 

 

When my banner expand to the video everything work well but i need to come back to my banner when the video as finish .

 

I know i can use 'ended' Listenner but i don't know how to do that :/ .

 

 

If someone can help me,

 

​Thank you =)

Link to comment
Share on other sites

Thanks for your help ,

 

i do this but : var video = document.getElementById("demoVideo");

video.onended = function () {

 

// at this moment i need to come back to my banner (id : banner)
alert("The video has ended");

};

 

 

Sorry i start js and jquery =/

Link to comment
Share on other sites

  • Solution

ok i find how to do it =)

 

 

 var video = document.getElementById("demoVideo");

   video.onended = function () {

     $('#expansion').css("display","none");
      

     $('#banner').css("opacity","1" );
      


    };

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...