Hover effect
How do I make an hover effect?
Hovering over a letter pulls it towards the viewer, along with it's nearest siblings. Could make a nice loading effect.. What is a hover effect? How do you make a hover effect? This script and codes were developed by Andrew Canham on 23 August 2022, Tuesday.
Hover effect - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Hover effect</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="letters"> <span>H</span><span>o</span><span>v</span><span>e</span><span>r</span><span>o</span><span>v</span><span>e</span><span>r</span>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Hover effect - Script Codes CSS Codes
@import url('http://fonts.googleapis.com/css?family=Open+Sans:400,300,700,600,800');
body { height: 100vh; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-perspective: 500px; perspective: 500px; background: #191919; color: transparent; font-family: "Open Sans"; font-weight: 800; font-size: 8vw; text-transform: uppercase; text-shadow: 0 0 3px rgba(255, 255, 255, 0.6);
}
span { display: inline-block; cursor: pointer; padding: 0 .2em; position: relative; -webkit-transition: all .15s linear; transition: all .15s linear;
}
span.on { color: #fff; -webkit-transform: scale(2.2); transform: scale(2.2); text-shadow: 0 0 1px #ffffff;
}
span.side { -webkit-transform: scale(1.65); transform: scale(1.65); text-shadow: 0 0 1px rgba(255, 255, 255, 0.85);
}
span.side2 { -webkit-transform: scale(1.35); transform: scale(1.35); text-shadow: 0 0 2px rgba(255, 255, 255, 0.7);
}
Hover effect - Script Codes JS Codes
$(document).ready(function(){ $("span").hover(function(){ $(this) .addClass("on") .next() .addClass("side") .next() .addClass("side2"); $(this) .prev() .addClass("side") .prev() .addClass("side2"); }, function() { $("span").removeClass("on"); $("span").removeClass("side"); $("span").removeClass("side2"); });
});
Developer | Andrew Canham |
Username | candroo |
Uploaded | August 23, 2022 |
Rating | 4 |
Size | 2,719 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 |
Wrinkle links | 4,205 Kb |
Angled nav reveal | 4,687 Kb |
A Pen by Andrew Canham | 2,789 Kb |
3D cube - hover rotate | 2,980 Kb |
Faux 3D grid with image reveal | 2,667 Kb |
Hover flower | 2,952 Kb |
Spread cards | 4,442 Kb |
Faux 3D grid | 2,284 Kb |
Cloxperiment | 3,514 Kb |
3D List expansion | 4,719 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 |
Drop Cap | Gsaiki | 1,571 Kb |
A Pen by Jim Savage | Madebyjam | 2,418 Kb |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 Kb |
Mondrian | Chrisarmstrong | 2,787 Kb |
Ball bouncing loading animation | Adam2326 | 3,144 Kb |
GLSL Hills | Ykob | 6,991 Kb |
Count checked checkboxes with jQuery | Mestika | 2,343 Kb |
Flip test | Madhes | 1,635 Kb |
Sass Radar | Jlong | 6,887 Kb |
Impress JS Algorhytmic Generator | Jeffscottward | 7,906 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!