Bootstrap has provided accordion "Collapse" JavaScript plugins for Bootstrap users, but has no explanation making the accordion partially expand and collapse.
Below is the demo/template to build your accordion partially expand and collapse within the given height. The HTML includes CDN (content delivery network) to connect Bootstrap/Jquery's CSS and JavaScript files, so it's ready to be used! Click to download below.