3D Button

Developer
Size
2,896 Kb
Views
6,072

How do I make an 3d button?

What is a 3d button? How do you make a 3d button? This script and codes were developed by Lloydwheeler on 26 January 2023, Thursday.

3D Button Previews

3D Button - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>3D Button</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ body { background: #222229;
}
.scene { perspective: 1000; width: 10em; position: absolute; top: 50%; left: 50%; margin-left: -5em; margin-top: -5em;
}
.cube { color: #ccc; cursor: pointer; font-family: 'Roboto', sans-serif; transition: all 0.85s cubic-bezier(0.17, 0.67, 0.14, 0.93); transform-style: preserve-3d; transform-origin: 100% 50%; width: 10em; height: 4em;
}
.cube:hover { transform: rotateX(-90deg);
}
.side { box-sizing: border-box; position: absolute; display: inline-block; height: 4em; width: 10em; text-align: center; text-transform: uppercase; padding-top: 1.5em;
}
.top { background: #fff; color: #222229; transform: rotateX(90deg) translate3d(0, 0, 2em);
}
.front { background: #222229; color: #fff; box-shadow: inset 0 0 0 5px #fff; transform: translate3d(0, 0, 2em);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <link href='https://fonts.googleapis.com/css?family=Gafata|Roboto:700' rel='stylesheet' type='text/css'>
<div class="scene"> <div class="cube"> <span class="side top">Top</span> <span class="side front">Front</span> </div>
</div>
</body>
</html>

3D Button - Script Codes CSS Codes

body { background: #222229;
}
.scene { perspective: 1000; width: 10em; position: absolute; top: 50%; left: 50%; margin-left: -5em; margin-top: -5em;
}
.cube { color: #ccc; cursor: pointer; font-family: 'Roboto', sans-serif; transition: all 0.85s cubic-bezier(0.17, 0.67, 0.14, 0.93); transform-style: preserve-3d; transform-origin: 100% 50%; width: 10em; height: 4em;
}
.cube:hover { transform: rotateX(-90deg);
}
.side { box-sizing: border-box; position: absolute; display: inline-block; height: 4em; width: 10em; text-align: center; text-transform: uppercase; padding-top: 1.5em;
}
.top { background: #fff; color: #222229; transform: rotateX(90deg) translate3d(0, 0, 2em);
}
.front { background: #222229; color: #fff; box-shadow: inset 0 0 0 5px #fff; transform: translate3d(0, 0, 2em);
}
3D Button - Script Codes
3D Button - Script Codes
Home Page Home
Developer Lloydwheeler
Username lloydwheeler
Uploaded January 26, 2023
Rating 4.5
Size 2,896 Kb
Views 6,072
Do you need developer help for 3D Button?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Lloydwheeler (lloydwheeler) Script Codes
Create amazing SEO content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!