Show more / show less button - Brown Surfing

Show more / show less button

Posted on: March 15th, 2022
By: Efrain Lemus

I created a cool show more/show less features with vanilla JavaScript:

I couldn’t find another solution that is able to work when there are multiple buttons.

It also uses string interpolation for the variable that controls the dynamic height

#html #css #javascript

Have any questions or comments? Write them below!


Leave a Reply

Your email address will not be published.