Observe below Image. HTML5 Video can be displayed through text, if text have 2 different stroke opacity and fill opacity properties. Normal HTML text won't provide stroke opacity and fill opacity features, Only SVG text does. So we have to implement this using SVG text.

SVG Text

<svg class="blur" xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink" width="1050" height="498">
      <text x="30" y="350" fill="white" stroke="darkkhaki" stroke-width="3" fill-opacity="0" stroke-opacity="1">SVG</text>
</svg>
fill-opacity is 0 means filling area of text is completely transparent. stroke-opacity is 1 means stroke width of text is completely visible. Whatever displayed in the background, it will be visible to user through text

Markup

Observe below markup. Here I placed video as background to this demodiv
<div class="demoDiv">
    <svg class="blur" xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink" width="1050" height="498">
      <text x="30" y="350" fill="white" stroke="darkkhaki" stroke-width="3" fill-opacity="0" stroke-opacity="1">SVG</text>
    </svg>
    <video id="work-letter-video-one" class="letter-video" autoplay="" preload="auto" loop="">
     <source src="letter-smoke.webm">
     <source src="letter-smoke.mp4">
   </video>
</div>

CSS

.demoDiv {
  position: relative;
  width: 883px;
  margin: auto;
}

.demoDiv text {
  font-size:400px;
}

.demoDiv video {
  width: 100%; 
  position: absolute;
  left:0px;
  top:0px;
  z-index:-1
}

15 comments:

  1. Replies
    1. Great Article android based projects

      Java Training in Chennai

      Project Center in Chennai

      Java Training in Chennai

      projects for cse

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  2. There are so many video resources in so many formats by now, and you need to convert them to some certain format so as to play them on some certain device. You need to choose a video converter first. Since most video converters are similar at the first look and those applications usually Online Video Converter a lot functions and features in common, it is difficult to make a decision.

    ReplyDelete
  3. whoah this blog is magnificent i love reading your posts. Keep up the great work! You know, lots of people are looking around for this info, you could help them greatly. solidworks 2017 flow simulation

    ReplyDelete
  4. Thank you for this kind of info I had been browsing all Msn to be able to find it! putlocker

    ReplyDelete
  5. Adobe Photoshop has gone a long way from its first versions. It has become more powerful and flexible, allowing more usability and functions for better output. autocad price

    ReplyDelete
  6. The reality about SEO services is that it is routinely not hard work, but that doesn't mean its unproblematic.It still takes time, dedication, effort, strategy, technique, method, skill, and experience to execute eminence SEO services. As we can see, these SEO experts want nothing but to deliver their services through a complete utilization of SEO tools to produce outstanding results. High DA

    ReplyDelete
  7. The reality about SEO services is that it is routinely not hard work, but that doesn't mean its unproblematic.It still takes time, dedication, effort, strategy, technique, method, skill, and experience to execute eminence SEO services. As we can see, these SEO experts want nothing but to deliver their services through a complete utilization of SEO tools to produce outstanding results. page authority

    ReplyDelete
  8. The reality about SEO services is that it is routinely not hard work, but that doesn't mean its unproblematic.It still takes time, dedication, effort, strategy, technique, method, skill, and experience to execute eminence SEO services. As we can see, these SEO experts want nothing but to deliver their services through a complete utilization of SEO tools to produce outstanding results. seo

    ReplyDelete
  9. You’ve got a good blog there keep it up. I’ll be watching out for most posts. 먹튀검증

    ReplyDelete
  10. wow .Amazing blog with amazing content
    sakshi epaper

    ReplyDelete
  11. He’s been confined to desk duties ever since he accidentally shot a famous baseball-player for trespassing in his own stadium. 먹튀

    ReplyDelete



  12. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it. The angular js programming language is very popular which are most widely used.



    Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery














    ReplyDelete

Blogroll

Follow this blog by Email

Popular Posts