I'm in the process of creating a fresh new website and I am looking to add some interesting hover effects to my list items (li
).
Within my ul
, there are three list items:
<ul id="list">
<li>HomePage</li>
<li>About<span>Me</span></li>
<li>Contact<span>Form</span></li>
</ul>
The idea is to hide specific text portions like "Page" on HomePage, "Me" on AboutMe, and "Form" on ContactForm when hovering over the respective list item.
To achieve this effect, I plan on incorporating a bit of JQuery code that will animate the width of the list item when hovered over and reveal additional content within spans
.
Below is the CSS code being utilized for styling:
#list li{
font-size:14px;
color:#3ea9c1;
overflow:hidden;
height:60px;
display:inline;
width:20px;
padding:25px;
transition:1s ease;
}
Although I intend to minimize the use of Jquery due to concerns regarding CSS-related issues. Any guidance or assistance would be greatly appreciated! Thank you for your help.