You can build the plugin for accordion. If you download elementskit you can use accordion effect on your website.You can also use wordpress accordion menu to make your site look better.
You can use Elementskit. Its robust and integrated addon for Elementor plugin of WordPress. You can build horizontal accordion and verticle accordion on your website.