Hi Ciaran,
I would like to use Syklar for my next project. But I would also like to have Stella's hover effect for the top menu items.
How can I realize this effect?
Thank you in advance for helpful tips.
Pedra
.hornav>ul>li>a:after, .hornav>ul>li>span:after {
position: absolute;
content: "";
left: 50%;
right: 50%;
height: 4px;
background-color: rgba(100,100,100,0.1);
background-color: var(--primary);
opacity: 0;
transition: all .35s ease;
top: 0;
transition-delay: .1s;
}
.hornav>ul>li>a:hover:after, .hornav>ul>li>span:hover:after {
left: 0;
right: 0;
opacity: 1;
}
<?php echo $this->baseurl ?>
<script>
document.addEventListener("DOMContentLoaded", function() {
const logoLink = document.querySelector(".logo a");
logoLink.setAttribute('href', "http://whatever.com");;
});
</script>