Creating a circular menu with CSS

后端 未结 4 1420
难免孤独
难免孤独 2021-01-31 04:51

I\'m trying to create a circular menu in CSS for a school project.

This is what the menu would look like:

\"

4条回答
  •  眼角桃花
    2021-01-31 05:24

    HTML Code

    
    

    CSS Code

        .ctrl {
            position: absolute;
            top: 75%; left: 50%;
            font: 1.5em/1.13 Verdana, sans-serif;
            transition: .5s;
        }
    
        a.ctrl, .ctrl div {
            display: block;
            opacity: .56;
            background: #c9c9c9;
            color: #7a8092;
            text-align: center;
            text-decoration: none;
            text-shadow: 0 -1px dimgrey;
          cursor: pointer;
        }
    
        .button {
            z-index: 2;
            margin: -.625em;
            width: 1.25em; height: 1.25em;
            border-radius: 50%;
            box-shadow: 0 0 3px 1px white;
        }
    
        .tip {
            z-index: 1;
            /**outline: dotted 1px white;/**/
            margin: -5em;
            width: 10em; height: 10em;
            transform: scale(.001);
            list-style: none;
            opacity: 0;
        }
    
    .slice {
        overflow: hidden;
        position: absolute;
        /**outline: dotted 1px yellow;/**/
        width: 50%; height: 50%;
        transform-origin: 100% 100%;
    }
    

    Full code : CSSCodeLab

提交回复
热议问题