HOME  >   CSS3 ANIMATION  >   Pure CSS3 to Achieve the Imitation of the Mac System Dock Menu
Pure CSS3 to Achieve the Imitation of the Mac System Dock Menu
BY Ronald12 Jan,2021
Tags:

Today we bring you another pure CSS3-based imitation of the Mac system Dock menu, with a beautiful landscape background, this Dock menu more realistic, of course, this is a pure CSS3 implementation.

Advertisement

Pure CSS3 to Achieve the Imitation of the Mac System Dock Menu
HTML Body Code
<div id="container">
    <div id="dock">
      <ul>
				<li>
          <span>Finder</span> <a href="#"><img
                        src="images/Mac_Finder_icon_(OS_X_Yosemite).png"/>
                </a>
        <li>
          <span>Chrome</span> <a href="#"><img src="images/2000px-Google_Chrome_icon_(2011).svg.png"/>
          </a>
        </li>
        <li>
          <span>Firefox</span> <a href="#"><img src="images/mozilla-png-file-mozilla-firefox-3-5-logo-256-png-256.png"></a>
        </li>
        <li>
          <span>App Store</span> <a href="#"><img
                src="images/2000px-App_Store_OS_X.svg.png"/></a>
        </li>
        <li>
          <span>Codepen</span> <a href="#"><img src=
          "https://blog.codepen.io/wp-content/uploads/2012/06/Button-Fill-White-Large.png"></a>
        </li>
        <li>
          <span>Launchpad</span> <a href="#"><img src=
          "http://icons.iconarchive.com/icons/johanchalibert/mac-osx-yosemite/1024/launchpad-icon.png"></a>
        </li>
				<li>
          <span>System pereferences</span> <a href="#"><img src=
          "http://icons.iconarchive.com/icons/johanchalibert/mac-osx-yosemite/1024/system-preferences-icon.png"></a>
        </li>
				<li>
          <span>Siri</span> <a href="#"><img src=
          "https://pre00.deviantart.net/008b/th/pre/f/2017/169/1/3/siri_by_hs1987-dbd58rs.png"></a>
        </li>
				<li>
          <span>iTunes</span> <a href="#"><img src=
          "https://forums.macrumors.com/attachments/itunes-1024x1024-png.565323/"></a>
        </li>
      </ul>
    </div>
  </div>                        
Css Code
.logo-d{
	text-align: center;
	margin-top: 220px;
}
.logo-d img{
	width: 40%;
	height: 40%;
}
.line{
	margin: 0 auto;
	width: 45%;
	height: 5px;
	background: #fff;
	border-radius: 20px 60px 20px 50px;
}
#container #dock{
	width: 100%;
	text-align: center;
	margin: 0 auto;
}
#container {
  position: fixed;
  bottom: 0;
  text-align: center;
  right: 20%;
  left: 10%;
  width: 79%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px 10px 0 0;
}

#container li {
  list-style-type: none;
  display: inline-block;
  position: relative;
}

#container li img {
  width: 50px;
  height: 50px;
  -webkit-box-reflect: below 2px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.7, transparent), to(rgba(255, 255, 255, .5)));
  -webkit-transition: all 0.3s;
  -webkit-transform-origin: 40% 70%;
}                        

Advertisement