Hover effect
How do I make an hover effect?
What is a hover effect? How do you make a hover effect? This script and codes were developed by Kacper Bawol on 03 September 2022, Saturday.
Hover effect - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>hover effect</title> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="row"> <div class="tile"> <div class="top"> <p>22A </p> <p>University - Old Catton</p> </div> <div class="bottom"> <div class="waiting-time"> Due in </div> <div class="points"> 14 min </div> </div> <div class="pickup"> <i class="fa fa-bus"></i> <p>Timetable</p> </div> </div> <div class="tile"> <div class="top"> <p>22A </p> <p>University - Old Catton</p> </div> <div class="bottom"> <div class="waiting-time"> Due in </div> <div class="points"> 14 min </div> </div> <div class="pickup"> <i class="fa fa-bus"></i> <p>Timetable</p> </div> </div> <div class="tile"> <div class="top"> <p>22A </p> <p>University - Old Catton</p> </div> <div class="bottom"> <div class="waiting-time"> Due in </div> <div class="points"> 14 min </div> </div> <div class="pickup"> <i class="fa fa-bus"></i> <p>Timetable</p> </div> </div> <div class="tile"> <div class="top"> <p>22A </p> <p>University - Old Catton</p> </div> <div class="bottom"> <div class="waiting-time"> Due in </div> <div class="points"> 14 min </div> </div> <div class="pickup"> <i class="fa fa-bus"></i> <p>Timetable</p> </div> </div> <div class="tile"> <div class="top"> <p>22A </p> <p>University - Old Catton</p> </div> <div class="bottom"> <div class="waiting-time"> Due in </div> <div class="points"> 14 min </div> </div> <div class="pickup"> <i class="fa fa-bus"></i> <p>Timetable</p> </div> </div> <div class="tile"> <div class="top"> <p>22A </p> <p>University - Old Catton</p> </div> <div class="bottom"> <div class="waiting-time"> Due in </div> <div class="points"> 14 min </div> </div> <div class="pickup"> <i class="fa fa-bus"></i> <p>Timetable</p> </div> </div> <div class="tile"> <div class="top"> <p>22A </p> <p>University - Old Catton</p> </div> <div class="bottom"> <div class="waiting-time"> Due in </div> <div class="points"> 14 min </div> </div> <div class="pickup"> <i class="fa fa-bus"></i> <p>Timetable</p> </div> </div> <div class="tile"> <div class="top"> <p>22A </p> <p>University - Old Catton</p> </div> <div class="bottom"> <div class="waiting-time"> Due in </div> <div class="points"> 14 min </div> </div> <div class="pickup"> <i class="fa fa-bus"></i> <p>Timetable</p> </div> </div> <div class="tile"> <div class="top"> <p>22A </p> <p>University - Old Catton</p> </div> <div class="bottom"> <div class="waiting-time"> Due in </div> <div class="points"> 14 min </div> </div> <div class="pickup"> <i class="fa fa-bus"></i> <p>Timetable</p> </div> </div> <div class="tile"> <div class="top"> <p>22A </p> <p>University - Old Catton</p> </div> <div class="bottom"> <div class="waiting-time"> Due in </div> <div class="points"> 14 min </div> </div> <div class="pickup"> <i class="fa fa-bus"></i> <p>Timetable</p> </div> </div> <div class="tile"> <div class="top"> <p>22A </p> <p>University - Old Catton</p> </div> <div class="bottom"> <div class="waiting-time"> Due in </div> <div class="points"> 14 min </div> </div> <div class="pickup"> <i class="fa fa-bus"></i> <p>Timetable</p> </div> </div> <div class="tile"> <div class="top"> <p>22A </p> <p>University - Old Catton</p> </div> <div class="bottom"> <div class="waiting-time"> Due in </div> <div class="points"> 14 min </div> </div> <div class="pickup"> <i class="fa fa-bus"></i> <p>Timetable</p> </div> </div>
</div>
</body>
</html>
Hover effect - Script Codes CSS Codes
* { /* Safari/Chrome, other WebKit */ /* Firefox, other Gecko */ box-sizing: border-box; /* Opera/IE 8+ */ position: relative; -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.row { width: 50%; margin: 0 auto; width: 100%;
}
body,
html { font-family: sans-serif; width: 100%; margin: 0; color: #111; font-weight: 100;
}
.tile,
.front { cursor: pointer; margin: 1px; display: block; float: left; width: 130px; height: 130px;
}
.tile { border-radius: 2px; background: #E7E7E7; overflow: hidden; -webkit-transition: all 350ms cubic-bezier(.22, .3, .11, 1.1); transition: all 350ms cubic-bezier(.22, .3, .11, 1.1);
}
.tile:hover { background: #E7E7E7;
}
.tile:hover .top p { -webkit-transform: scale(0.8); transform: scale(0.8); margin-top: -12px; opacity: 0;
}
.tile:hover .top i { -webkit-transform: scale(0.8); transform: scale(0.8); margin-top: -6px; margin-right: -5px; opacity: 0;
}
.tile:hover .bottom .points { bottom: 0; right: 0; -webkit-transform: scale(0.8); -ms-transform: scale(0.8); opacity: 0;
}
.tile:hover .bottom .waiting-time { bottom: 0px; left: 0px; -webkit-transform: scale(0.8); transform: scale(0.8); opacity: 0;
}
.tile:hover .pickup { opacity: 1; -webkit-transform: scale(1); transform: scale(1);
}
.tile .pickup { opacity: 0; -webkit-transform: scale(0.3); transform: scale(0.3); cursor: pointer; width: 100%; text-align: center; position: absolute; height: 100%; top: 0px; -webkit-transition: all 350ms cubic-bezier(.22, .3, .11, 1.1); transition: all 350ms cubic-bezier(.22, .3, .11, 1.1);
}
.tile .pickup i { width: 25px; padding-top: 40px; font-size: 30px;
}
.tile .pickup p { margin: 10px 0 0 0; font-size: 18px;
}
.tile .top { margin: 0; padding: 10px;
}
.tile .top i { position: absolute; top: 8px; right: 8px; width: 15px; height: 15px; -webkit-transition: all 350ms cubic-bezier(.22, .3, .11, 1.1); transition: all 350ms cubic-bezier(.22, .3, .11, 1.1);
}
.tile .top p { width: 100%; margin: 0; font-size: 18px; text-align: center; -webkit-transition: all 350ms cubic-bezier(.22, .3, .11, 1.1); transition: all 350ms cubic-bezier(.22, .3, .11, 1.1);
}
.tile .bottom { width: 100%; position: absolute; bottom: 0px; height: 40px;
}
.tile .waiting-time { position: absolute; height: 20px; bottom: 10px; left: 10px; -webkit-transition: all 350ms cubic-bezier(.22, .3, .11, 1.1); transition: all 350ms cubic-bezier(.22, .3, .11, 1.1); -webkit-animation-delay: 0.1s; animation-delay: 0.1s;
}
.tile .bottom .points { position: absolute; bottom: 12px; right: 12px; font-size: 16px; -webkit-transition: all 350ms cubic-bezier(.22, .3, .11, 1.1); transition: all 350ms cubic-bezier(.22, .3, .11, 1.1);
}
Developer | Kacper Bawol |
Username | Casperovic |
Uploaded | September 03, 2022 |
Rating | 3 |
Size | 2,241 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 |
Svg text explosion | 6,191 Kb |
Svg currency block | 3,998 Kb |
A Pen by Kacper Bawol | 1,888 Kb |
Animating Hamburger menu | 2,898 Kb |
Loading animation | 2,309 Kb |
Hover effects | 2,419 Kb |
Webgl experiment with shaders | 5,002 Kb |
Scroll using CSS | 2,159 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 |
Spilled Paint | Darrylhuffman | 3,894 Kb |
Angular Sandbox | Alexgurrola | 1,616 Kb |
CMP5-Opdracht15 | SannevanGastel | 2,733 Kb |
Loading animation | Codeams | 2,408 Kb |
Bootstrap example | Ssaakkaa | 2,716 Kb |
Content Changer | Cliffpyles | 4,538 Kb |
Vanilla JS - A toggleClass function | Woodwork | 2,532 Kb |
Large canvas mousemove experiment | Jibbon | 2,885 Kb |
Gulpfile | Aimhigherwebdesign-amy | 1,765 Kb |
Experiments with Vertical Centering | KatieK2 | 3,924 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!