Easy hover effect for videos
How do I make an easy hover effect for videos?
Subtle gradient and scale effect on videos, with a CSS icon with a subtle animation. What is a easy hover effect for videos? How do you make a easy hover effect for videos? This script and codes were developed by Laura Moraiti on 27 August 2022, Saturday.
Easy hover effect for videos - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Easy hover effect for videos</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="img-wrap"> <img src="http://img.youtube.com/vi/_BPVV3fwEyY/mqdefault.jpg"> <div class="play"> <span></span> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Easy hover effect for videos - Script Codes CSS Codes
* {box-sizing: border-box;}
img{display: block;}
.img-wrap { position: relative; width: 320px; height: 180px; margin: 2em auto; overflow: hidden;
}
.img-wrap img { -webkit-transition: all .5s ease-in-out;
}
.img-wrap:hover img { -webkit-transform: scale(1.1);
}
.play { top: 0; bottom: 0; left: 0; right: 0; z-index: 10; position: absolute; transition: all .3s ease-in; cursor: hand; cursor: pointer; transition: all .3s ease-in;
}
.play:hover { background-image: linear-gradient(to bottom right, rgb(69,200,220), rgba(69,200,220,.2)); }
.play span { border: 3px solid rgba(255,255,255,.5); border-radius: 100%; width: 5em; height: 5em; display: block; position: absolute; margin: auto; top: 0; bottom: 0; left: 0; transition: all .5s ease-in; right: 0;
}
.play span:before { content: ""; width: 0; height: 0; border-left: 1.5em solid rgba(255,255,255,.5); border-right: 1.5em solid transparent; border-bottom: 1em solid transparent; border-top: 1em solid transparent; display: block; position: absolute; top: 0; bottom: 0; left: 0; right: -2em; margin: auto; transition: all .5s ease-in;
}
.play:hover span { border-color: #fff;
}
.play:hover span:before { border-left-color: #fff;
}
Developer | Laura Moraiti |
Username | Fixie |
Uploaded | August 27, 2022 |
Rating | 3 |
Size | 1,985 Kb |
Views | 30,360 |
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 |
Horizontal infinite loop newsticker | 2,634 Kb |
WIP | 3,174 Kb |
A Pen by Laura Moraiti | 5,467 Kb |
Music equalizer bars with jQuery | 2,372 Kb |
Simple gallery jquery | 3,790 Kb |
Edit inline text and hidden input with jQuery | 3,914 Kb |
Dynamic prefix, transition and transform SASS mixins | 2,551 Kb |
Reusable simple dropdown | 1,873 Kb |
Striped background for a container with more than one element | 1,942 Kb |
WIP accordion without jQueryUI | 2,724 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 |
A Pen by boilzzz | Boilzzz | 2,761 Kb |
Project -Show the Local Weather | Luciano_Britis | 2,583 Kb |
AngularJS Datalist Directive | M-e-conroy | 2,366 Kb |
Birthday Party Starter | Aussieyang | 1,629 Kb |
Marching Squares Visualized | Sakri | 7,074 Kb |
A simple log in form made with css | Mayurelbhar | 2,160 Kb |
Drag n Drop | Martin42 | 2,594 Kb |
SVG Text Masking | JMChristensen | 2,141 Kb |
Scroll to view if element partially out of view port height | ChrisMaki | 2,104 Kb |
Experiment - SCSS SVG Background Image with Variables | See8ch | 3,270 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!