3D Button
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 - 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);
}
Developer | Lloydwheeler |
Username | lloydwheeler |
Uploaded | January 26, 2023 |
Rating | 4.5 |
Size | 2,896 Kb |
Views | 6,072 |
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!
Name | Size |
Triangle Generator | 3,947 Kb |
A Pen by lloydwheeler | 2,180 Kb |
Page Editor Animation | 8,456 Kb |
Mix Blend Mode | 2,391 Kb |
Breakpoints Example | 3,425 Kb |
Weather Icon | 3,352 Kb |
Path Animation | 1,831 Kb |
Loading Icon 2 | 2,803 Kb |
Console Input | 2,173 Kb |
Damping | 3,852 Kb |
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!
Name | Username | Size |
Responsive Pricing Table | Jeremycaris | 2,690 Kb |
Codero Sitemap | S1m0ne | 28,169 Kb |
Board Site | IndianaLuft | 10,542 Kb |
Responsive slide | Thorien | 2,400 Kb |
CSS 3D Radio buttons | Andreasnylin | 1,650 Kb |
Profile box | Daniesy | 2,766 Kb |
Flat buttons for Eliassen.com | Kdooley89 | 1,737 Kb |
Stylize Stories | Jvhti | 2,465 Kb |
Drag in vanilla js using dotval math instead of translate | Paulq | 2,662 Kb |
Freecodecamp - Tribute Page | Samoht513 | 3,583 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!