Kosten | Четверг, 07 Февраля 2019, 22:15 | Сообщение 1 |
| Красивый дизайн кнопок всегда привлекает, что это безусловно будет отличным решением, так как они исполнены в стеклянной форме, а точнее стеклянные кнопки, что идут в 3 варианта. Где у каждого свой эффект при наведение на курсор.
Но кроме одной копки, которая создана в прозрачном стиле. Что теперь остается найти место, где такой формат можно выставить. Ведь не каждый фон может их корректно отображать.
HTML
Код <div class="sankong-uzenovin"> <div class="donversioncom"> <div class="binationup"> <button class="button anedescgation clear-a" type="button">ZorNet.Ru</button><br/> <button class="button anedescgation2" type="button">Новости</button><br/> <div class="button doregalines clear">Скрипты сайта <div class="doregalineshover">Скрипты сайта</div> <div class="doregalinesref"></div> <div class="doregalineshi"></div> <div id="hi3" class="doregalineshi"></div> <div id="hi3" class="doregalineshi"></div> </div> </div> </div>
CSS
Код .donversioncom { height: 100%; text-align: center; }
.left { float: left; padding: 20px; }
.right { float: right; padding: 20px; }
.binationup { position: relative; top: 50%; transform: translateY(-50%); }
.sankong-uzenovin { width: 100%; height: 100%; padding: 0; margin: 0; background-repeat: no-repeat; z-index: 0; }
/* Buttons Start Here */ .button { position: relative; color: rgba(255, 255, 255, 0.6); font-size: 16px; text-decoration:none;
padding: 0.5em 1.5em; margin: 0.5em;
cursor: pointer; width: 200px; height: 40px;
border-radius: 8px; -webkit-border-radius: 8px; -moz-border-radius: 8px;
-webkit-transition: all 0.1s ease-in-out; -moz-transition: all 0.1s ease-in-out; -o-transition: all 0.1s ease-in-out; transition: all 0.1s ease-in-out;
outline: 0; }
div.button { line-height: 20px; height: 25px; width: 200px; padding-left: 0; padding-right: 0; margin-left: auto; margin-right: auto; }
button:active { -webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important; }
.anedescgation { background: linear-gradient( to bottom, rgba(180,180,180,0.8) 0%, rgba(180,180,180,0.5) 3%, rgba(180,180,180,0.1) 45%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 28%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.3) 65%, rgba(255,255,255,0.3) 90%, rgba(0,0,0,0.3) 95%, rgba(0,0,0,0.3) 100% ); /* W3C */ border-color: rgba(0, 0, 0, 0.6); border-image: none; border-style: solid; border-width: 0px;
box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.4) inset, 0 2px 6px rgba(0, 0, 0, 0.5), 0 10px rgba(0, 0, 0, 0.05) inset; }
.anedescgation2 { background: linear-gradient( 170deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.6) 20%, rgba(255,255,255,0.1) 50%, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.0) 100% ); /* W3C */ border-color: rgba(255, 255, 255, 0.4); border-image: none; border-style: inset; border-width: 1px; /* box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.4) inset, 0 2px 6px rgba(0, 0, 0, 0.5), 0 -4px 8px -1px rgba(255, 255, 255, 0.4) inset; */ }
.anedescgation2:before { position: absolute; sankong-uzenovin: ""; top: -2px; left: 2%; width: 96%; height: 2px; background: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 15%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.75) 85%, rgba(0,0,0,0) 100% ); z-index: 1; }
.anedescgation2:after { position: absolute; sankong-uzenovin: ""; top: 100%; left: 2%; width: 96%; height: 2px; background: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 5%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.5) 95%, rgba(0,0,0,0) 100% ); z-index: 1; }
.doregalines { transition: all 0.1s ease-in-out; border-color: rgba(255, 255, 255, 0.6); border-image: none; border-style: double; border-width: 1px; }
.doregalinesref { position: relative; top: -73px; width: 200px; height: 45px; border-radius: 6px; background: linear-gradient( 172deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 20%, rgba(255,255,255,0.1) 48%, rgba(255,255,255,0.0) 49%, rgba(255,255,255,0.0) 100% ); z-index: 1; }
.doregalines:before { position: absolute; sankong-uzenovin: ""; top: -2px; left: 2%; width: 96%; height: 2px; background: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 15%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.75) 85%, rgba(0,0,0,0) 100% ); z-index: 1; }
.doregalines:after { position: absolute; sankong-uzenovin: ""; top: 100%; left: 2%; width: 96%; height: 2px; background: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 5%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.5) 95%, rgba(0,0,0,0) 100% ); z-index: 1; }
div.doregalineshi:before { position: absolute; sankong-uzenovin: ""; top: -2px; left: 10%; width: 36px; height: 3px; background: linear-gradient( to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.99) 50%, rgba(255,255,255,0) 100% ); z-index: 1; }
div.doregalineshi:after { position: absolute; sankong-uzenovin: ""; top: -2px; left: calc(10% + 16px); width: 4px; height: 2px; background-color: #fff; box-shadow: 0 0 8px 3px rgba(255,255,255,0.99); z-index: 1; }
#hi2 { transform: translate(120px, -10px); z-index: 9; }
#hi3 { transform: rotate(90deg) translate(-35px, -100px); z-index: 9; }
button:hover.clear-a { color: rgba(255, 255, 255, 0.99); text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.99), 0px 0px 4px rgba(255, 255, 255, 0.75); border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.4) inset, 0 2px 6px rgba(0, 0, 0, 0.5), 0 10px rgba(0, 0, 0, 0.05) inset, 0 0 5px 2px rgba(255, 255, 255, 0.75), 0 0 10px 2px rgba(255, 255, 255, 0.75) inset; }
.doregalineshover { position: relative; top: -30px; left: -1px; width: 198px; height: 41px; line-height: 36px; border-radius: 6px; color: #000; background: radial-gradient( ellipse at center, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100% ); /* W3C */ opacity: 0.0; transition: all 0.3s ease-in-out; z-index: 2; box-shadow: 0 0 6px 3px rgba(255,255,255,0.5); border: 2px groove rgba(255,255,255,0.5); }
div:hover.doregalineshover { opacity: 1.0; }
Выбираем вариант, который больше вам подойдет на сайте.
Демонстрация
| Страна: (RU) |
| |