Customizing and animating the Divi toggle icon takes just a few lines of custom CSS in your ePanel or Divi Child Theme and you will get a really cool effect as you may have seen in some sites, such as Brewlife.

This example changes the colour of the icon when it is open along with rotating the down arrow 180 degrees to become an up arrow. Use the following code in your ePanel or custom CSS;

<br /> /* Divi toggle animate arrow and change colour */<br /> .et_pb_toggle_open .et_pb_toggle_title:before {<br /> transform: rotate(180deg);<br /> content: "\25bc";<br /> transition:all 0.5s ease-in-out 0s;<br /> color:#e5e2d3;<br /> }<br /> .et_pb_toggle_title:before {<br /> content: "\25bc";<br /> font-size:2em;<br /> transition:all 0.5s ease-in-out 0s;<br /> color:#179baf;<br /> }<br /> 

Just a toggle module with custom css to change the icon on open/closed states and set colour.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.