Hello,
I want to show a line when hovering a menu-item.
I have created this in html, which works fine.
<html>
<a class="line" href="#">Home</a>
</html>
<style>
.line {
display: inline;
position: relative;
overflow: hidden;
}
.line:after {
content: "";
position: absolute;
z-index: -1;
right: 0;
width: 0;
bottom: -5px;
background: #000;
height: 4px;
transition-property: width;
transition-duration: 0.3s;
transition-timing-function: ease-out;
}
.line:hover:after, .line:focus:after, .line:active:after {
left: 0;
right: auto;
width: 100%;
}
</style>
Now, I want to implement this in the Helix Ultimate template.
I added a Link Class "link" in the menu item.
I added the code from "Style" in the custom css file.
But it doesn't work.
I know some things about CSS, but I am not a "Master" in CSS.
Can someone show me what I am doing wrong?
Regards, Peter