CSS 3D Rotate
How do I make an css 3d rotate?
What is a css 3d rotate? How do you make a css 3d rotate? This script and codes were developed by Adrian Payne on 18 August 2022, Thursday.
CSS 3D Rotate - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS 3D Rotate</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! */ * { box-sizing: border-box;
}
html, body { background-color: #434343; height: 100vh;
}
body { perspective-origin: 50% 250px; perspective: 2000px; align-items: center; display: flex; justify-content: center;
}
body .l,
body .r { display: block; height: 100vh; position: absolute; top: 0; width: 40vw;
}
body .l { left: 0;
}
body .l:hover ~ .panel { transform: rotateY(20deg);
}
body .r { right: 0;
}
body .r:hover ~ .panel { transform: rotateY(-20deg);
}
.panel { background: url(http://th02.deviantart.net/fs27/PRE/f/2008/037/a/5/Pulse_Wallpaper_by_dazulu.jpg); background-size: cover; padding: 20px; pointer-events: none; position: relative; transform-style: preserve-3d; height: 300px; width: 500px; transition: all 500ms ease-out;
}
.panel::before, .panel::after { background: #202027; content: ''; display: block; height: 300px; position: absolute; top: 0; width: 75px;
}
.panel::before { right: 0; transform-origin: top right; transform: rotateY(90deg) translatex(75px);
}
.panel::after { left: 0; transform-origin: center left; transform: rotateY(-90deg) translateX(-75px);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="l"></div>
<div class="r"></div>
<div class="panel"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
CSS 3D Rotate - Script Codes CSS Codes
* { box-sizing: border-box;
}
html, body { background-color: #434343; height: 100vh;
}
body { perspective-origin: 50% 250px; perspective: 2000px; align-items: center; display: flex; justify-content: center;
}
body .l,
body .r { display: block; height: 100vh; position: absolute; top: 0; width: 40vw;
}
body .l { left: 0;
}
body .l:hover ~ .panel { transform: rotateY(20deg);
}
body .r { right: 0;
}
body .r:hover ~ .panel { transform: rotateY(-20deg);
}
.panel { background: url(http://th02.deviantart.net/fs27/PRE/f/2008/037/a/5/Pulse_Wallpaper_by_dazulu.jpg); background-size: cover; padding: 20px; pointer-events: none; position: relative; transform-style: preserve-3d; height: 300px; width: 500px; transition: all 500ms ease-out;
}
.panel::before, .panel::after { background: #202027; content: ''; display: block; height: 300px; position: absolute; top: 0; width: 75px;
}
.panel::before { right: 0; transform-origin: top right; transform: rotateY(90deg) translatex(75px);
}
.panel::after { left: 0; transform-origin: center left; transform: rotateY(-90deg) translateX(-75px);
}
Developer | Adrian Payne |
Username | dazulu |
Uploaded | August 18, 2022 |
Rating | 3 |
Size | 3,154 Kb |
Views | 60,720 |
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 |
CSS Flame Animation | 2,927 Kb |
Pure CSS RSS Icon | 3,063 Kb |
Code Against Humanity | 3,088 Kb |
Animation Label Transition | 2,809 Kb |
Round and round we go... | 3,929 Kb |
Animated fire extinguisher | 3,223 Kb |
A Pen by Adrian Payne | 2,652 Kb |
CSS butterfly | 4,053 Kb |
CSS modal slide up animation with FB-ish zoom on scroll | 5,349 Kb |
Tile Game | 6,146 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 |
Draggable directive | YahyaKacem | 2,277 Kb |
Awesome textarea | Ayoungh | 1,977 Kb |
Popover Example | Seanboom | 2,429 Kb |
STIKHOI | Denmch | 7,122 Kb |
WRENCH - STAFF | Lolita-adams | 1,608 Kb |
Prism | Pyrografix | 2,843 Kb |
Flexbox Grid - equal height | DaveOrDead | 2,855 Kb |
700 Synapses Per Second | Silentkrange | 2,138 Kb |
Simple Login Form Template | Banunn | 3,571 Kb |
Parallax-ish Sliding Content | Jdsteinbach | 2,748 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!