3d transform card flip

Developer
Size
2,276 Kb
Views
14,168

How do I make an 3d transform card flip?

Workshopping css 3d transforms http://desandro.github.io/3dtransforms/ . What is a 3d transform card flip? How do you make a 3d transform card flip? This script and codes were developed by Joseph on 21 November 2022, Monday.

3d transform card flip Previews

3d transform card flip - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>3d transform card flip</title> <link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <section class="container"> <div id="card"> <figure class="front"><span>aphelion</span></figure> <figure class="back"><span><i>Astronomy</i>. the point in the orbit of a planet or a comet at which it is farthest from the sun.</span></figure> </div>
</section> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

3d transform card flip - Script Codes CSS Codes

body
{ color:#eaeaea; font-family: 'Courier New', Courier, monospace; font-size:1em; font-weight:300;
}
#button { position:fixed; top:25px; left:25px; }
.container { width: 240px; height: 336px; position: absolute; left:50%; top:50px; margin-left:-100px; border: 0px solid #CCC; -webkit-perspective: 800px; } #card { width: 100%; height: 100%; position: absolute; cursor:pointer; -webkit-transition: -webkit-transform 1s; -webkit-transform-style: preserve-3d; } #card.flipped { -webkit-transform: rotateY( 180deg ); } #card figure { display: block; margin:0px; padding:0px; height: 100%; width: 100%; text-align: center; position: absolute; display: table; -webkit-backface-visibility: hidden; } #card span { display: table-cell; text-align: center; vertical-align: middle; padding:25px; } #card .front { background: #7ba61a; font-size:1.6em; } #card .back { background: #841565; -webkit-transform: rotateY( 180deg ); }
#card .back > span { text-align:left; }

3d transform card flip - Script Codes JS Codes

$(document).ready(function() { $('#card').click(function() { $('#card').toggleClass('flipped'); });
});
3d transform card flip - Script Codes
3d transform card flip - Script Codes
Home Page Home
Developer Joseph
Username jibbon
Uploaded November 21, 2022
Rating 3
Size 2,276 Kb
Views 14,168
Do you need developer help for 3d transform card flip?

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!

Joseph (jibbon) Script Codes
Create amazing captions 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!