Radial Menu
Home
Snippets
Radial Menu
HTML
CSS
JS
<div class="menu"> <div class="center">+</div> <div class="item">A</div> <div class="item">B</div> <div class="item">C</div> <div class="item">D</div> </div>
body { height: 100vh; margin: 0; background: #1e1e2f; display: flex; justify-content: center; align-items: center; font-family: sans-serif; } .menu { position: relative; width: 100px; height: 100px; } .center { width: 80px; height: 80px; background: #00bcd4; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-weight: bold; cursor: pointer; position: absolute; top: 10px; left: 10px; z-index: 2; transition: transform 0.3s; } .menu:hover .center { transform: rotate(45deg); } .item { width: 60px; height: 60px; background: #03a9f4; color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; top: 20px; left: 20px; transition: transform 0.3s; position: absolute; transform: scale(0); } .menu:hover .item { transform: scale(1); } .item:nth-child(2) { transform: translate(-100px, 0) scale(0); } .item:nth-child(3) { transform: translate(100px, 0) scale(0); } .item:nth-child(4) { transform: translate(0, -100px) scale(0); } .item:nth-child(5) { transform: translate(0, 100px) scale(0); } .menu:hover .item:nth-child(2) { transform: translate(-100px, 0) scale(1); } .menu:hover .item:nth-child(3) { transform: translate(100px, 0) scale(1); } .menu:hover .item:nth-child(4) { transform: translate(0, -100px) scale(1); } .menu:hover .item:nth-child(5) { transform: translate(0, 100px) scale(1); }
//javascript
Ad #1
Ad #2
Scroll to Top