Adjust CSS and Javascript code to run in elementor

Job ID: 33943271

Budget: €8 – €30 EUR

Hey Guys, I am trying to adjust the following code to work in elementor pagebuilder text section for wordpress.

https://rubyyagi.com/how-to-truncate-long-text-and-show-read-more-less-button/

What It should do:
put line clamp after 5 lines --> if there is overflow -->show toggable readmore button -->
if click on button remove lineclamp ad show read less.
If click readless put lineclamp back and show read morebutton

Should be quite an easy job

What you should deliver
CSS Code + JS Code so the required function works in elementor
Related categories: JavaScript WordPress CSS HTML Elementor