Skip to content

5emeGauche/make_me_video_bt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MakeMeVideoBt.js

MakeMeVideoBt.js create a video iconic link with a background image on a top of an image or a div

options : img:url to img, position: 'image'/'icon' set the dimension to the image/div dimension / icon dimension htmlTag:'link'/'span'

see demo

<body>
  <div id="container">
      <img src="img/img.jpg" alt="img" class='bt-video' style='padding-left:50px;margin-top:50px'>
  </div> <!--! end of #container -->


  <script src="js/libs/jquery-1.6.2.min.js"></script>
  <script src="js/makeMeVideoBt.min.js"></script>

  

  <script >
    $(function (){
      $('.bt-video').makeMeVideoBt({img:'img/play.png'});
    })
  </script>
</body>

About

Add a play video png to any image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published