0

I am using a video tag inside a div. Now I want to make the rest of the area translucent or transparent. There is already a background image, so I cant use a transparent png as well.

<div id="WelcomeVideo12"  style="width:100%; margin-left: px;" >
    <video id="frist_video" style="width:97% !important; height:100%;margin-top:-100%;"  autoplay='true' loop='true'>
        <source src="<?php echo $base_url ; ?>upload_media/Welcome.mp4" type="video/mp4">
        <source src="mov_bbb.ogg" type="video/ogg">
        Your browser does not support HTML5 video.
    </video>
</div>

Please help me out.

Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339

1 Answers1

0

You can use filter: blur(5px); on your background image with a z-index smaller than your foreground.

Anna
  • 101
  • 8
  • I just found your question answered (if I have the right understanding) here, with a demo: [link](http://stackoverflow.com/questions/20039765/how-to-apply-a-css-3-blur-filter-to-a-background-image) – Anna Jun 22 '15 at 08:14
  • using your suggestion only the image will be blur... i also want to blur or translucent other things on page... – Hitendra Singh Tomar Jun 22 '15 at 09:39