Home › Forums › Support › about Menu Hover Animation This topic has 9 replies, 3 voices, and was last updated 3 years, 4 months ago by David. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts November 29, 2022 at 1:13 am #2440494 bruce hello, please see the website:https://oled.baynoe.com/ i added the css copied from this page https://docs.generatepress.com/article/adding-menu-hover-animation/ but still has some issue. how to let the animation align the menu text . you can see ,now the animation not align. thanks. November 29, 2022 at 1:37 am #2440532 Fernando Customer Support Hi Bruce, It’s not visible currently. Can you first change the color of the background in the code? Example, replace this line: background-color: currentColor; with this: background-color: #ff0000; Replace #ff0000 with your preference. After doing this, let us know what “alignment” you’re going for. Current;y, it’s centered at the top. November 29, 2022 at 2:16 am #2440582 bruce hello i replace it. please check it. thanks. November 29, 2022 at 5:28 am #2440825 DavidStaff Customer Support Hi there, see this CSS Rule: .main-navigation .menu > .menu-item.current-menu-item > a::after, .main-navigation .menu > .menu-item.current-menu-ancestor > a::after, .main-navigation .menu > .menu-item > a:hover::after { width: 50%; } Change the width: 50%; to: width: calc(100% - 44px); November 29, 2022 at 6:25 am #2440906 bruce ok now. thanks. November 29, 2022 at 6:59 am #2440958 DavidStaff Customer Support You’re welcome November 29, 2022 at 7:41 pm #2442060 bruce Hello David, Now the animation is above the menu text. how to let the annimation is under menu text. thanks. November 30, 2022 at 4:11 am #2442538 DavidStaff Customer Support In this CSS: .main-navigation .menu > .menu-item > a::after { content: ""; position: absolute; right: 0; left: 50%; bottom: 15px; -webkit-transform: translate3d(-50%,0,0); transform: translate3d(-50%,0,0); display: block; width: 0; height: 2px; background-color: currentColor; transition: 0.3s width ease; top: unset; /* Add this */ } Add the top: unset; property i commented above November 30, 2022 at 5:24 am #2442621 bruce thank you David,ok now. November 30, 2022 at 5:28 am #2442628 DavidStaff Customer Support Glad to hear that Author Posts Viewing 10 posts - 1 through 10 (of 10 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In