How to add Elementor menu hover effect

图片[1]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复

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教程与故障修复
  • Edit the Header, Footer or the template containing the menu.
图片[3]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复

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教程与故障修复
  • Click the Advanced tab on the element.
图片[5]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复
  • Navigate to the Customize CSS drop-down menu.
图片[6]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复

Copy the CSS styles:

  • Copy the desired menu hover style from the library on our homepage.
图片[7]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复

Add CSS code:

  • Paste the CSS style into the text area of the Custom CSS drop-down list.
图片[8]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复

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教程与故障修复
  • Optional: To override Elementor's default color styles, end the ";" with! important.
图片[10]-如何添加 Elementor 菜单悬停效果-光子波动网 | WordPress教程、Elementor教程与故障修复

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教程与故障修复

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.


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
Customer Service
Customer Service
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: [email protected]
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
本文作者:红牛独立站
THE END
If you like it, support it.
kudos0 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments