3D-box
How do I make an 3d-box?
Just move cursor and view box 3d movement and smile dance in middle of box...Design by : [email protected]. What is a 3d-box? How do you make a 3d-box? This script and codes were developed by Parth Viroja on 03 September 2022, Saturday.
3D-box - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>3D-box</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="container"> <ul> <li></li> <li></li> <li></li> <li></li> <li></li> <li></li> <li class="gif"></li> </ul>
</div> <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-box - Script Codes CSS Codes
* { list-style-type: none;
}
body { background-color: #e13300;
}
#container { position: relative; display: block; -webkit-perspective: 1300; -moz-perspective: 1300px; -ms-perspective: 1300; perspective: 1300; -webkit-perspective-origin: 50% 50%; -moz-perspective-origin: 50% 50%; -ms-perspective-origin: 50% 50%; perspective-origin: 50% 50%; width: 100%; height: 250px; margin-top: 100px;
}
#container ul { position: relative; display: block; width: 250px; -webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; -ms-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-transform-origin: 50% 50%; -moz-transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; transform-origin: 50% 50%; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -ms-transition: all 1s ease; transition: all 1s ease; margin: 0 auto;
}
#container ul li { position: absolute; height: 250px; width: 250px; padding: 0;
}
#container ul li:nth-child(1) { -webkit-transform: translateZ(125px); -moz-transform: translateZ(125px); -ms-transform: translateZ(125px); transform: translateZ(125px); -webkit-box-shadow: 0 0 50px rgba(255, 255, 255, 1); -moz-box-shadow: 0 0 50px rgba(255, 255, 255, 1); -ms-box-shadow: 0 0 50px rgba(255, 255, 255, 1); -o-box-shadow: 0 0 50px rgba(255, 255, 255, 1); box-shadow: 0 0 100px rgba(255, 255, 255, 1);
}
#container ul li:nth-child(2) { -webkit-transform: rotateY(90deg) translateZ(125px); -moz-transform: rotateY(90deg) translateZ(125px); -ms-transform: rotateY(90deg) translateZ(125px); transform: rotateY(90deg) translateZ(125px); -webkit-box-shadow: 0 0 50px rgba(255, 255, 255, 1); -moz-box-shadow: 0 0 50px rgba(255, 255, 255, 1); -ms-box-shadow: 0 0 50px rgba(255, 255, 255, 1); -o-box-shadow: 0 0 50px rgba(255, 255, 255, 1); box-shadow: 0 0 100px rgba(255, 255, 255, 1);
}
#container ul li:nth-child(3) { -webkit-transform: rotateY(180deg) translateZ(125px); -moz-transform: rotateY(180deg) translateZ(125px); -ms-transform: rotateY(180deg) translateZ(125px); transform: rotateY(180deg) translateZ(125px); -webkit-box-shadow: 0 0 50px rgba(255, 255, 255, 1); -moz-box-shadow: 0 0 50px rgba(255, 255, 255, 1); -ms-box-shadow: 0 0 50px rgba(255, 255, 255, 1); -o-box-shadow: 0 0 50px rgba(255, 255, 255, 1); box-shadow: 0 0 100px rgba(255, 255, 255, 1);
}
#container ul li:nth-child(4) { -webkit-transform: rotateY(-90deg) translateZ(125px); -moz-transform: rotateY(-90deg) translateZ(125px); -ms-transform: rotateY(-90deg) translateZ(125px); transform: rotateY(-90deg) translateZ(125px); -webkit-box-shadow: 0 0 50px rgba(255, 255, 255, 1); -moz-box-shadow: 0 0 50px rgba(255, 255, 255, 1); -ms-box-shadow: 0 0 50px rgba(255, 255, 255, 1); -o-box-shadow: 0 0 50px rgba(255, 255, 255, 1); box-shadow: 0 0 100px rgba(255, 255, 255, 1);
}
#container ul li:nth-child(5) { -webkit-transform: rotateX(90deg) translateZ(125px);
}
#container ul li:nth-child(6) { -webkit-transform: rotateX(90deg) translateZ(-125px);
}
#container ul li:nth-child(7) { background-image: url(https://lh3.googleusercontent.com/epP6yl16cHX94_ZgAlf3xO2CTQWt6Xy-KfuvGfXGYnU=w255-h31-no); background-position: center center; background-repeat: no-repeat;
}
3D-box - Script Codes JS Codes
$(window).mousemove(function(event) { var w = $(this).width() / 2; var v = 0; if (event.pageX > w) { v = ((event.pageX - w) / 20); } else { v = ((event.pageX - w) / 20); } $("#container ul").css({ '-webkit-transform': 'rotateY(' + v + 'deg)', '-moz-transform': 'rotateY(' + v + 'deg)' });
});
Developer | Parth Viroja |
Username | parthviroja |
Uploaded | September 03, 2022 |
Rating | 3 |
Size | 2,346 Kb |
Views | 30,360 |
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 |
Filter, sort grid item | 2,592 Kb |
Rotate Circle Pure Javascript | 2,896 Kb |
Form Wizard | 2,857 Kb |
Ubuntu Terminal | 2,603 Kb |
Page load animation | 2,511 Kb |
Remove Class On Click Outside | 1,992 Kb |
Jquery Tab | 2,367 Kb |
Box transition | 1,784 Kb |
Dynamic Radial Menu Using Javascript | 3,008 Kb |
Ripple Effect | 2,548 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 |
Simple Login Form | JoshBlackwood | 4,418 Kb |
Fun animations with CSS3 | Minimalmonkey | 2,360 Kb |
Simple Linear Regression with Editable Table | Melatonind | 3,264 Kb |
A Pen by Oliver Schafeld | Schafeld | 1,720 Kb |
3D flipping card | Ssaakkaa | 2,238 Kb |
A Pen by Andrea Verlicchi | Verlok | 2,018 Kb |
LeMandinque | Aadesida | 9,046 Kb |
Simple personal profile | Miroot | 2,856 Kb |
Flying Bee | Pwsm50 | 3,711 Kb |
Snow collision | Wojtek1150 | 3,542 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!