Hover effect

Developer
Size
2,241 Kb
Views
28,336

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 Previews

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);
}
Hover effect - Script Codes
Hover effect - Script Codes
Home Page Home
Developer Kacper Bawol
Username Casperovic
Uploaded September 03, 2022
Rating 3
Size 2,241 Kb
Views 28,336
Do you need developer help for Hover effect?

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!

Kacper Bawol (Casperovic) Script Codes
Create amazing web content with AI!

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!