If you are using the Elementor editor, you can add a custom CSS menu hover effect by following these steps:
Open the page or template:
- Log in to the WordPress dashboard.
- Navigate to the page that needs to be edited with Elementor.
- Edit the Header, Footer or the template containing the menu.
Add or edit the navigation Elementor:
- Navigate to an existing menu element or add the "WordPress Menu" element to the Elementor tab.
- Click the Advanced tab on the element.
- Navigate to the Customize CSS drop-down menu.
Copy the CSS styles:
- Copy the desired menu hover style from the library on our homepage.
Add CSS code:
- Paste the CSS style into the text area of the Custom CSS drop-down list.
Edit Color:
- Some menu styles use Elementor's default "pointer" colors.
- Navigate to the Style tab of the menu.
- Click Hover and then edit the Color under the Color picker.
- Optional: To override Elementor's default color styles, end the ";" with! important.
Save and Publish
- Click "update"or"post" to apply the changes.
Others can use the other 4 types ofconversions::
- Matrix: Apply complex 2D transformations via transformation matrices.
- Translation (translate): Moves the position of an element in two or three dimensions.
- Rotate: Rotate the element around the specified point.
- Skew: Twist an element so that it is tilted horizontally or vertically.
Sample code:
/* Example of hover effect */
selector:hover {
color: #ffffff !important;
background-color: #000000 !important; transform: translateY(-10px); /* add translation effect */ hover
transform: translateY(-10px); /* Add translation effect */
}
/* Example of rotation effect */
selector:hover {
transform: rotate(10deg); /* add rotation effect */
}
/* Tilt example */
selector:hover {
transform: skewX(10deg); /* Add horizontal skew */
}
/* Matrix effect example */
selector:hover {
transform: matrix(1, 0.5, -0.5, 1, 0, 0); /* add matrix effect */
}
Summary:
If you are using the Elementor editor, you can enhance the hover effect of the menu by adding custom CSS. Navigate Elementor by adding or editing in the Elementor tab, go to the Advanced tab, and navigate to the Custom CSS drop-down menu. Adjust the hover color by editing the color option in the Styles tab. The hover animation of the menu can also be further customized using effects such as Matrix, Translate, Rotate and Skew.
Posted by photon fluctuations, retweeted with attribution:https://www.361sale.com/en/10268/