Calculator Tools Calculator Tools
Create

Dynamic Button

Mar 19, 2024

About this app

Interactive button with dynamic styles and transitions

Dynamic Button Click me!

Related apps

Put this on your site

Source

                    <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Interactive button with dynamic styles and transitions">
<meta name="keywords" content="HTML, CSS, Button, Interactive, Web Development">
<title>Dynamic Button</title>
<style>
body {
background-color: #121212;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

.dynamic-button {
align-self: start;
background-attachment: scroll;
background-clip: border-box;
background-color: rgb(255, 98, 0);
background-image: linear-gradient(130deg, rgb(255, 189, 43) 0%, rgb(255, 140, 0) 25%, rgb(255, 98, 0) 65%, rgb(242, 73, 0) 100%);
background-origin: padding-box;
background-position-x: 0%;
background-position-y: 0%;
background-repeat: repeat;
background-size: auto;
border-bottom-color: rgb(255, 255, 255);
border-bottom-left-radius: 48px;
border-bottom-right-radius: 48px;
border-bottom-style: none;
border-bottom-width: 0px;
border-image-outset: 0;
border-image-repeat: stretch;
border-image-slice: 100%;
border-image-source: none;
border-image-width: 1;
border-left-color: rgb(255, 255, 255);
border-left-style: none;
border-left-width: 0px;
border-right-color: rgb(255, 255, 255);
border-right-style: none;
border-right-width: 0px;
border-top-color: rgb(255, 255, 255);
border-top-left-radius: 48px;
border-top-right-radius: 48px;
border-top-style: none;
border-top-width: 0px;
box-shadow: rgb(255, 255, 255) 0px 0px 0px 3.37022px, rgba(0, 0, 0, 0.85) 0px 3px 6px 0px;
box-sizing: border-box;
color: rgb(255, 255, 255);
cursor: pointer;
display: block;
font-family: 'proxima-nova', Helvetica, sans-serif;
font-size: 24px;
font-weight: 800;
height: 48px;
justify-self: end;
line-height: 24px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
padding-bottom: 12px;
padding-left: 32px;
padding-right: 32px;
padding-top: 12px;
text-align: center;
text-decoration-color: rgb(255, 255, 255);
text-decoration-line: none;
text-decoration-style: solid;
text-decoration-thickness: auto;
text-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px;
text-transform: uppercase;
transition-property: box-shadow;
transition-duration: 0.15s;
transition-timing-function: ease-in;
width: 300px; /* Made very big for visibility */
}

.dynamic-button:hover {
outline-color: rgb(255, 255, 255);
outline-style: none;
outline-width: 0px;
transition-duration: 0.25s;
transition-timing-function: cubic-bezier(0.5, 4, 0.01, -0.8);
width: 348.367px; /* Increased size on hover */
z-index: 3;
box-shadow: rgb(255, 255, 255) 0px 0px 0px 6px, rgba(0, 0, 0, 0.85) 0px 6px 12px 0px; /* Enhanced box-shadow on hover */
}
</style>
</head>
<body>
<button class="dynamic-button">Click me!</button>
</body>
</html>