Title follows mouseover menu

Developer
Size
1,940 Kb
Views
26,312

How do I make an title follows mouseover menu?

^. What is a title follows mouseover menu? How do you make a title follows mouseover menu? This script and codes were developed by Wafs on 12 September 2022, Monday.

Title follows mouseover menu Previews

Title follows mouseover menu - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Title follows mouseover menu</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> <ul id="wrapper"> <li><a href="#">Item 1</a></li> <li><a href="#">Item 2</a></li> <li><a href="#">Item 3</a></li> <a id="boink" href="#">Boink</a>
</ul> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Title follows mouseover menu - Script Codes CSS Codes

#wrapper
{ display:block; position: relative;
}
li
{ position: relative; display:block; font-size: 500%;
}
a
{ text-decoration:none; color:rgba(0,0,0,.1);
}
a:hover
{ color:rgba(0,0,0,1);
}
*{ -webkit-transition: all 0.25s ease; -moz-transition: all 0.25s ease; -ms-transition: all 0.25s ease; -o-transition: all 0.25s ease; transition: all 0.25s ease;
}
#boink
{ color:black; font-size: 500%; position: absolute; top:0px; left:300px;
}

Title follows mouseover menu - Script Codes JS Codes

var boink = $("#boink")
$("li a").mouseenter(function(){ var index = $("li a").index(this) +1; var currTop = $(this).offset().top; console.log(currTop) boink.offset({top:currTop}); boink.css("background-color","hsl("+index * 90 +",50%,50%)");
})
$("li a").mouseleave(function(){ boink.css("background-color","");
})
Title follows mouseover menu - Script Codes
Title follows mouseover menu - Script Codes
Home Page Home
Developer Wafs
Username wafs
Uploaded September 12, 2022
Rating 3
Size 1,940 Kb
Views 26,312
Do you need developer help for Title follows mouseover menu?

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!

Wafs (wafs) Script Codes
Create amazing SEO 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!