The css animation code isn't working. When #tools_button is checked, I want #tools_hidden to become visible and move from top:0% to top:6% smoothly. Here is the code:
#tools_hidden {
  position: fixed;
  left: 10%;
  top: 0;
  display: none;
  -webkit-transition: width 2s;
  /* For Safari 3.1 to 6.0 */
  transition: top 0.5s;
}
#tools_button:checked~#tools_hidden {
  position: fixed;
  left: 10%;
  top: 6%;
  display: block;
}<div id="tools">
  <span>
    <input type="checkbox" id="tools_button">
     <label for="tools_button">
      <img src="img/tools.png" id="tools_icon" alt="">
       <span id="tools_label">
       Tools
      </span>
  </label>
  <span id="tools_hidden">
     this is hidden
    </span>
  </span>
</div>Scripts are strictly restricted for my project. So, please don't think of adding scripts.
 
     
    