Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8087929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:56:06+00:00 2026-06-05T18:56:06+00:00

Is it possible to fade out the HTML5 video poster / oimage if we

  • 0

Is it possible to fade out the HTML5 video poster / oimage if we start the video and fade it in again when we pause or stop the video?

Normally the poster image is directly hidden when the video is started and also directly shown when we load the video / stop it

Maybe we can clone the poster image to a canvas, position it over the video and fade it out and in?

Is there an existing solution / script?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:56:08+00:00Added an answer on June 5, 2026 at 6:56 pm

    The behavior of the poster attribute is really driven by the <video> tag itself. You’re just telling it, before starting display this image. Like any video element customization, this would require you to have your own elements involved. Basically, you would have:

    <div class="video-container" style="position:relative">
        <video width="x" height="y"></video>
        <img style="position: absolute; top: 0; left: 0; bottom: 0; right: 0">
    </div>
    

    You would then have to bind your events, for example with Zepto:

    $('.video-container img').bind('click', function() {
        var $img = $(this),
            $vid = $img.parent().find('video');
        $img.animate({opacity: 0}, 1000, 'linear', function() {
            $img.css({visibility: 'hidden'});
            $vid[0].play();
        });
    });
    

    Similarly, you would listen for the pause event and when it occurs fade back in.

    That said, this is probably a bad idea for two reasons:

    1. This probably won’t work for iOS or any device that prevents scripted playback. In these devices, you can only trigger play() when inside a click event handler. Since you’re playing a second later, you don’t really have control.
    2. You’re breaking default functionality. When I pause a video, I may want to seek to another moment but I definitely want to know where I left off. The lack of a visual queue takes that away.

    Update

    Here’s a different approach that would help you get around the iOS difficulties. In this case, you actually start the video on click, meaning there will be a period of time where the fading image covers the playing video, so it’s your call.

    $('.video-container').each(function() {
        var $img = $(this).find('img'),
            $vid = $(this).find('vid');
    
        $img.bind('click', function() { $vid[0].play() });
    
        $vid.bind('play', function() {
            $img.animate({opacity: 0}, 1000, 'linear', function() {
                if($vid[0].playing) {
                    $img.css({visibility: 'hidden'});
                }
            });
        });
    
        $vid.bind('pause ended', function() {
            $img.css({visibility: 'visible'});
            $img.animate({opacity: 1}, 1000, 'linear');
        });
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to fade out a Javascript embedded Youtube video using Javascript/jQuery? At
I'm trying to figure out if this is possible.. I have an image map
hello is it possible to fade in / fade out a couple of images
I am trying to fade out and fade in the text inside a textbox.
Is it possible to give a UIToolBar a custom background from an image rather
I have tried every possible combination of methods for replacing an image but have
I'm looking to toggle between slide-down then fade-in and fade-out then slide-up effects in
I know you can fade out a <div> with jQuery, but I was wondering
I'm wondering if it is possible to fade in a list of items sequentially
I'm trying to fade out a div on a click but also change some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.