I have a <details>
section in my HTML file like (MWE):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<title>My Project</title>
</head>
<body>
<details>
<summary> The summary 1</summary>
Line 1<br>
Line 2<br>
Line 3<br>
Line 4<br>
</details>
</body>
</html>
and when clicking on the arrow the the details are show as one block at once.
Edit The text block is here shown as 4 lines but can be from 1 ... End edit
It there a possibility to smoothly show them like it is done in this example (taken from https://www.w3schools.com/css/css3_transitions.asp):
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 100px;
height: 100px;
background: red;
transition: height 2s;
}
div:hover {
height: 300px;
}
</style>
</head>
<body>
<h1>The transition Property</h1>
<p>Hover over the div element below, to see the transition effect:</p>
<div></div>
</body>
</html>