.wrapper { margin: 40px auto 0; width: 266px; position: relative; } #txt { visibility: hidden; color: #ffffff; } .wheel { width: 250px; height: 250px; border-radius: 50%; position: relative; overflow: hidden; border: 8px solid #fff; box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 10px, rgba(0, 0, 0, 0.05) 0px 3px 0px; transform: rotate(0deg); } .wrapper .note1 { position: absolute; top: 280px; } .wrapper .note2 { position: absolute; top: 280px; } /*#wheel:before {*/ /* content: '';*/ /* position: absolute;*/ /* border: 4px solid rgba(0, 0, 0, 0.1);*/ /* width: 242px;*/ /* height: 242px;*/ /* border-radius: 50%;*/ /* z-index: 1000;*/ /*}*/ .inner-wheel { width: 100%; height: 100%; transition: all 4s cubic-bezier(0, .80, .44, .99); } .wheel .sec { position: absolute; width: 0; height: 0; border-style: solid; border-width: 130px 95px 0; /*top, right, down, left*/ border-color: #19c transparent; transform-origin: 50% 100%; left: 10%; top: -5%; opacity: 1; } #spin { width: 68px; height: 68px; position: absolute; top: 50%; left: 50%; margin: -34px 0 0 -34px; border-radius: 50%; box-shadow: rgba(0, 0, 0, 0.1) 0px 3px 0px; z-index: 1000; background: #fff; cursor: pointer; font-family: "Exo 2", sans-serif; user-select: none; } #spin:after { content: 'SPIN'; text-align: center; line-height: 68px; color: #ccc; text-shadow: 0 2px 0 #fff, 0 -2px 0 rgba(0, 0, 0, 0.3); position: relative; z-index: 100000; width: 68px; height: 68px; display: block; } #spin:before { content: ''; position: absolute; width: 0; height: 0; border-style: solid; border-width: 0 20px 28px 20px; border-color: transparent transparent #fff transparent; top: -12px; left: 14px; } #inner-spin { width: 54px; height: 54px; position: absolute; top: 50%; left: 50%; margin: -27px 0 0 -27px; border-radius: 50%; z-index: 999; box-shadow: rgba(255, 255, 255, 1) 0px -2px 0px inset, rgba(255, 255, 255, 1) 0px 2px 0px inset, rgba(0, 0, 0, 0.4) 0px 0px 5px; background: radial-gradient(ellipse at center, rgba(255, 255, 255, 1) 0% , rgba(234, 234, 234, 1) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr = '#ffffff', endColorstr='#eaeaea', GradientType=1); } #spin:active .inner-spin { box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 5px inset; } #spin:active:after { font-size: 15px; } #shine { width: 250px; height: 250px; position: absolute; top: 0; left: 0; background: radial-gradient(ellipse at center, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.99) 1%, rgba(255, 255, 255, 0.91) 9%, rgba(255, 255, 255, 0) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr = '#ffffff', endColorstr='#00ffffff', GradientType=1); opacity: 0.1; } @keyframes hh { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(7deg); } } .spin { animation: hh 0.1s; } /*---------------------------------------------------------------------------- for color decision (instruction)*/ .range { border-radius: 50%; display: table; height: 186px; position: relative; width: 186px; } .range input { opacity: 0; position: absolute; } .range .notice { position: absolute; top: 200px; } .range .dial { background-color: #FF0000; border-radius: 50%; box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.1); cursor: pointer; height: 26px; margin-left: -13px; position: relative; top: -13px; transform: translateX(93px) translateY(50px); width: 26px; z-index: 40; } .range .dial:focus { outline: 0; } .range .info { bottom: 150px; color: #333; cursor: default; display: table-cell; font: 400 20px/1.1 "Roboto", sans-serif; left: 250px; position: absolute; right: 100px; text-align: center; top: 30px; user-select: none; text-transform: uppercase; z-index: 30; } .range .count { color: #FF0000; font-size: 30px; font-weight: 700; } .range .count2 { color: #0000FF; font-size: 30px; font-weight: 700; } .slice { border-radius: 186px 0 0 186px; background-color: #FF0000; height: 100%; overflow: hidden; position: absolute; user-select: none; width: 50%; z-index: 10; } .slice.right { border-radius: 0 186px 186px 0; right: 0; } .slice.right .blocker { left: 0; right: auto; transform-origin: 0 25%; } .slice .blocker { background-color: #0000FF; height: 200%; position: absolute; right: 0; transform-origin: 100% 25%; width: 200%; } .range2 { border-radius: 50%; display: table; height: 186px; position: relative; width: 186px; } .range2 input { opacity: 0; position: absolute; } .range2 .notice2 { position: absolute; top: 200px; } .range2 .dial2 { background-color: #0000FF; border-radius: 50%; box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.1); cursor: pointer; height: 26px; margin-left: -13px; position: relative; top: -13px; transform: translateX(93px) translateY(50px); width: 26px; z-index: 40; } .range2 .dial2:focus { outline: 0; } .range2 .info2 { bottom: 150px; color: #333; cursor: default; display: table-cell; font: 400 20px/1.1 "Roboto", sans-serif; left: 250px; position: absolute; right: 100px; text-align: center; top: 30px; user-select: none; text-transform: uppercase; z-index: 30; } .range2 .count3 { color: #0000FF; font-size: 30px; font-weight: 700; } .range2 .count4 { color: #FF0000; font-size: 30px; font-weight: 700; } .slice2 { border-radius: 186px 0 0 186px; background-color: #0000FF; height: 100%; overflow: hidden; position: absolute; user-select: none; width: 50%; z-index: 10; } .slice2.right { border-radius: 0 186px 186px 0; right: 0; } .slice2.right .blocker2 { left: 0; right: auto; transform-origin: 0 25%; } .slice2 .blocker2 { background-color: #FF0000; height: 200%; position: absolute; right: 0; transform-origin: 100% 25%; width: 200%; } .Wheel .range3 { border-radius: 50%; display: table; height: 200px; position: relative; width: 200px; } .range3 input { opacity: 0; position: absolute; } .range3 .slice3 { border-radius: 186px 0 0 186px; background-color: #FF0000; height: 100%; overflow: hidden; position: absolute; user-select: none; width: 50%; z-index: 10; } .range3 .slice3.right { border-radius: 0 186px 186px 0; right: 0; } .range3 .slice3.right .blocker3 { left: 0; right: auto; transform-origin: 0 25%; } .range3 .slice3 .blocker3 { background-color: #0000FF; height: 200%; position: absolute; right: 0; transform-origin: 100% 25%; width: 200%; } .Wheel .range4 { border-radius: 50%; display: table; height: 200px; position: relative; width: 200px; } .range4 input { opacity: 0; position: absolute; } .range4 .slice4 { border-radius: 186px 0 0 186px; background-color: #0000FF; height: 100%; overflow: hidden; position: absolute; user-select: none; width: 50%; z-index: 10; } .range4 .slice4.right { border-radius: 0 186px 186px 0; right: 0; } .range4 .slice4.right .blocker4 { left: 0; right: auto; transform-origin: 0 25%; } .range4 .slice4 .blocker4 { background-color: #FF0000; height: 200%; position: absolute; right: 0; transform-origin: 100% 25%; width: 200%; } /*second wheel*/ /* .range2 { border-radius: 50%; display: table; height: 186px; position: relative; width: 186px; } .range2 input { opacity: 0; position: absolute; } .range2 .dial2 { background-color: #FFF; border-radius: 50%; box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.1); cursor: pointer; height: 26px; margin-left: -13px; position: absolute; top: -13px; transform: translateX(93px) translateY(50px); width: 26px; z-index: 40; } .range2 .dial2:focus { outline: 0; } .range2 .info2 { background-color: #FFF; border-radius: 50%; bottom: 100px; color: #333; cursor: default; display: table-cell; font: 400 16px/1.1 "Roboto", sans-serif; left: 100px; padding-top: 50%; position: absolute; right: 100px; text-align: center; top: 100px; user-select: none; text-transform: uppercase; z-index: 30; } .range2 .count3 { color: #0000FF; display: block; font-size: 50px; font-weight: 700; } .range2 .count4 { color: #FF0000; display: block; font-size: 50px; font-weight: 700; } .slice { border-radius: 186px 0 0 186px; background-color: #0000FF; height: 100%; overflow: hidden; position: absolute; user-select: none; width: 50%; z-index: 10; } .slice.right { border-radius: 0 186px 186px 0; right: 0; } .slice.right .blocker { left: 0; right: auto; transform-origin: 0 25%; } .slice .blocker { background-color: #FF0000; height: 200%; position: absolute; right: 0; transform-origin: 100% 25%; width: 200%; }*/