<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <!--  JQuery CDN link  -->
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" ></script>
  <!--  Box Icon CDN link  -->
  <link href='https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css' rel='stylesheet'>
  <title>Bottom menu</title>
</head>
<body>
  <div class="container">
    <div class="btn">
      <i class='bx bxs-up-arrow'></i>
    </div>
    
    <div class="menu">
      <i class='bx bxs-message-square-detail'></i>
      <i class='bx bx-coffee-togo'></i>
      <i class='bx bxs-directions'></i>
      <i class='bx bxs-dollar-circle'></i>
    </div>
  </div>
</body>
</html>
*
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container
{
  width: 100%;
  height: 100vh;
  position: relative;
  transition: 2s all;
}

.btn
{
  height: 40px;
  width: 40px;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0f0f0, #cacaca);
  box-shadow:  50px 50px 100px #bcbcbc,
             -50px -50px 100px #ffffff;
  cursor: pointer;
  z-index: 1;
  transition: 0.6s ease;
}

.btn:hover
{
  border-radius: 50%;
  background: linear-gradient(145deg, #cacaca, #f0f0f0);
  box-shadow:  50px 50px 100px #bcbcbc,
             -50px -50px 100px #ffffff;
}

.btn i
{
  font-size: 16px;
  line-height: 40px;
  color: #fff;
  transition: 0.6s ease;
}

.btn-close
{
  bottom: 0;
}

.btn-close i
{
  transform: rotate(180deg);
}

/* ------------- Menu icons ------------- */
.menu
{
  font-size: 25px;
  height: 60px;
  width: 100%;
  background: #D3D3D3;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  position: absolute;
  bottom: 0;
  transition: 0.12 all;
}

.menu-close
{
  height: 0;
}

.menu-close i
{
  display: none;
}

.menu i
{
  color: #313131;
}
$(".btn").on("click",function(){
  $(".btn").toggleClass("btn-close");
  $(".menu").toggleClass("menu-close");
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.