![图片[1]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024052114482369.png)
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.
![图片[2]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024052114531555.png)
- Edit the Header, Footer or the template containing the menu.
![图片[3]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024052114551591.png)
Add or edit the navigation Elementor:
- Navigate to an existing menu element or add the "WordPress Menu" element to the Elementor tab.
![图片[4]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024052114574229.png)
- Click the Advanced tab on the element.
![图片[5]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024052114575082.png)
- Navigate to the Customize CSS drop-down menu.
![图片[6]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024052114581187.png)
Copy the CSS styles:
- Copy the desired menu hover style from the library on our homepage.
![图片[7]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024052114592019.png)
Add CSS code:
- Paste the CSS style into the text area of the Custom CSS drop-down list.
![图片[8]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024052114593318.png)
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.
![图片[9]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024052115010868.png)
- Optional: To override Elementor's default color styles, end the ";" with! important.
![图片[10]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024052115020567.png)
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:
![图片[11]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/uploads/2024/05/2024050815260970.png)
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.
Link to this article:https://www.361sale.com/en/10268/The article is copyrighted and must be reproduced with attribution.




















![表情[wozuimei]-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/themes/zibll/img/smilies/wozuimei.gif)
![表情[baoquan]-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/themes/zibll/img/smilies/baoquan.gif)

No comments