You can also just use the <details>-tag.
<details>
That's HTML's default disclosure-widget, and does not require any JavaScript.
If you want a smoother height-animation than scaleY, you can add a small script. I've made a demo here.
scaleY
U deserve an Unicorn!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You can also just use the
<details>
-tag.That's HTML's default disclosure-widget, and does not require any JavaScript.
If you want a smoother height-animation than
scaleY
, you can add a small script. I've made a demo here.U deserve an Unicorn!