mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
53 lines
1 KiB
HTML
53 lines
1 KiB
HTML
<div class="frame">
|
|
<div class="center">
|
|
<button>Hover me</button>
|
|
</div>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by laminelawal - Tags: alert, button, 2d button */
|
|
.frame {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 400px;
|
|
height: 400px;
|
|
margin-top: -200px;
|
|
margin-left: -200px;
|
|
border-radius: 2px;
|
|
box-shadow: 4px 8px 16px 0 rgba(0,0,0,0.1);
|
|
overflow: hidden;
|
|
background: #fff;
|
|
color: #333;
|
|
font-family: 'Open Sans', Helvetica, sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
.center {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%,-50%);
|
|
}
|
|
|
|
button {
|
|
padding: 15px 15px;
|
|
border: none;
|
|
width: 170px;
|
|
height: 55px;
|
|
box-shadow: 15px 15px darkblue;
|
|
cursor: pointer;
|
|
transition: 0.5s ease;
|
|
background: lightgray;
|
|
font-size: 18px;
|
|
font-weight: bolder;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
button:hover {
|
|
box-shadow: -15px -15px lightgray;
|
|
transform: translate(15px, 15px);
|
|
background: darkblue;
|
|
color: white;
|
|
}
|
|
</style>
|