3D Transforms - Part 1
How do I make an 3d transforms - part 1?
Transform: rotate3d([X direction], [Y direction], [Z direction], [rotation angle]);. What is a 3d transforms - part 1? How do you make a 3d transforms - part 1? This script and codes were developed by Fezzik on 25 November 2022, Friday.
3D Transforms - Part 1 - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>3D Transforms - Part 1</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!DOCTYPE html>
<html>
<head> <title>3D Transforms</title> <link rel="stylesheet" type="text/css" href="page.css"> <link rel="stylesheet" type="text/css" href="transforms.css">
</head>
<body> <h1>3D Transforms - Part 1</h1> <div class="wrap"> <div class="side-a"></div> <div class="side-b"></div> </div>
</body>
</html>
</body>
</html>
3D Transforms - Part 1 - Script Codes CSS Codes
body { padding-top: 50px; background: #F7F7F7; font-family: sans-serif;
}
h1 { text-align: center; }
.wrap { position: relative; margin: 0 auto; width: 250px; height: 350px; cursor: pointer;
}
.wrap div { width: 100%; height: 100%; border-radius: 10px; background-position: 50% 50%; background-size: 150px; background-repeat: no-repeat; box-shadow: inset 0 0 45px rgba(255,255,255,.3), 0 12px 20px -10px rgba(0,0,0,.4); color: #FFF; text-align: center; text-shadow: 0 1px rgba(0,0,0,.3); font: bold 3em sans-serif; line-height: 350px;
}
.side-a { background: #498FBC url('https://treehouse-code-samples.s3.amazonaws.com/CSS-DD/codepen/stage11/mike.png');
}
.side-b { background: #33363B url('https://treehouse-code-samples.s3.amazonaws.com/CSS-DD/codepen/stage11/mike-transparent.png');
}
/*** Transform ***/
body { -webkit-perspective: 800px; /* 800px to 1000px is a pretty common value. */ /* 'perspective' prepares the webpage for a 3D affect. */
}
.wrap { /* Create a smooth transition. */ transition: -webkit-transform 1s ease-in;
}
.wrap div { position: absolute;
}
.side-a { z-index: 100;
}
.side-b {
}
.wrap:hover { /* 3D affect occurs on hover. */ /* webkit-transform: rotateY(-180deg); */ /*transform: rotate3d([X direction], [Y direction], [Z direction], [rotation angle]); NOTE: X, Y, & Z values are ususally 0 or 1. 1 will rotate on the x-, y-, z- axis to the degree set in the 4th value. 0 will not rotate at all. */ -webkit-transform: rotate3d(1,0,1,65deg);
}
Developer | Fezzik |
Username | Fezzik |
Uploaded | November 25, 2022 |
Rating | 3 |
Size | 2,176 Kb |
Views | 12,144 |
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 |
Media Features and Media Types | 2,218 Kb |
Box Shadows | 1,604 Kb |
Print Stylesheets | 6,153 Kb |
Flexbox - Part 1 | 1,912 Kb |
Additional Pseudo-Classes | 2,442 Kb |
Transitions - Part 1 | 1,804 Kb |
3D Transforms - Part 2 | 2,529 Kb |
Web Fonts | 3,861 Kb |
Full-page Animation Project - Part 3 | 2,111 Kb |
Text Properties | 1,865 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 |
Day 1 - Portfolio | Chpecson | 3,532 Kb |
Update CSS Variables with JS | Wesbos | 2,335 Kb |
Tab panels | Accessibility | 0 Kb |
Exploding Text | Jjmartucci | 4,749 Kb |
Buttons with style | Chbymnky | 2,082 Kb |
Basic template | Tomcat | 1,675 Kb |
Voting App - register | MatheusLima92 | 1,948 Kb |
Kudos Please | TimPietrusky | 6,624 Kb |
Pure CSS Dial | Lukewatts | 3,018 Kb |
Css or Czz.. | Judag | 4,111 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!