Html5 video overlay play button
How do I make an html5 video overlay play button?
What is a html5 video overlay play button? How do you make a html5 video overlay play button? This script and codes were developed by Reinis on 06 December 2022, Tuesday.
Html5 video overlay play button - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>html5 video overlay play button</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="wrapper"> <video class="video"> <source src="http://e14aaeb709f7cde1ae68-a1d0a134a31b545b257b15f8a8ba5726.r70.cf3.rackcdn.com/projects/31432/1427815464209-bf74131a7528d0ea5ce8c0710f530bb5/1280x720.mp4" type="video/mp4" /> </video> <div class="playpause"></div>
</div> <script src="js/index.js"></script>
</body>
</html>
Html5 video overlay play button - Script Codes CSS Codes
.video { width: 100%; border: 1px solid black;
}
.wrapper{ display:table; width:auto; position:relative; width:50%;
}
.playpause { background-image:url(http://png-4.findicons.com/files/icons/2315/default_icon/256/media_play_pause_resume.png); background-repeat:no-repeat; width:50%; height:50%; position:absolute; left:0%; right:0%; top:0%; bottom:0%; margin:auto; background-size:contain; background-position: center;
}
Html5 video overlay play button - Script Codes JS Codes
$('.video').parent().click(function () { if($(this).children(".video").get(0).paused){ $(this).children(".video").get(0).play(); $(this).children(".playpause").fadeOut(); }else{ $(this).children(".video").get(0).pause(); $(this).children(".playpause").fadeIn(); }
});
Developer | Reinis |
Username | 72 |
Uploaded | December 06, 2022 |
Rating | 3 |
Size | 2,033 Kb |
Views | 28,336 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Simple html js slideshow | 1,692 Kb |
Full page iFrame | 1,390 Kb |
Working hours | 2,258 Kb |
Top-bottom navigation button | 2,514 Kb |
Jquery single page menu | 2,423 Kb |
Stretching page based on tables and percentage | 4,491 Kb |
Jquery dropdown | 1,652 Kb |
Splashscreen until document ready | 2,106 Kb |
Clickable table cell 2 | 1,716 Kb |
Fullscreen audio play button | 2,148 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Infractions - Attitude | Kylie_Joseph | 7,672 Kb |
CSS Grid Overlay | Cliffpyles | 3,090 Kb |
Mostly Fluid | Mccreath | 3,308 Kb |
Playing with FlexBox | _Billy_Brown | 3,162 Kb |
Rrremark.com Overlay Highlighter | Derickruiz | 4,438 Kb |
Default Input, Textareas, Submits, and Buttons in iOS | Demersdesigns | 2,334 Kb |
Horizontal scroll fixed element | HerrSerker | 0 Kb |
SVG Animation | Pollardld | 3,133 Kb |
Learning canvas drawing | Aurer | 2,204 Kb |
Video mute | Leon9208 | 2,131 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!