Simple Opening SCSS Cubes

Developer
Size
4,200 Kb
Views
28,336

How do I make an simple opening scss cubes?

..simple scss for cubes..hover to open the cube.. do view a better extension of this pen I made for 'n' cubes.. http://codepen.io/unmeshpro/pen/inBfv. What is a simple opening scss cubes? How do you make a simple opening scss cubes? This script and codes were developed by Unmesh Shukla on 03 September 2022, Saturday.

Simple Opening SCSS Cubes Previews

Simple Opening SCSS Cubes - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple Opening SCSS Cubes </title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.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 { width: 100%; height: 100%; background: black; overflow: hidden;
}
.cl1:nth-child(1) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; position: absolute; opacity: 0.5; width: 200px; height: 200px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateX(100px) rotateY(90deg);
}
.contain1:hover .cl1:nth-child(1) { -webkit-transform: translateX(200px) rotateY(9deg);
}
.cl1:nth-child(2) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; position: absolute; opacity: 0.5; width: 200px; height: 200px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateY(-100px) rotateX(90deg);
}
.contain1:hover .cl1:nth-child(2) { -webkit-transform: translateY(-200px) rotateX(9deg);
}
.cl1:nth-child(3) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; position: absolute; opacity: 0.5; width: 200px; height: 200px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateX(-100px) rotateY(-90deg);
}
.contain1:hover .cl1:nth-child(3) { -webkit-transform: translateX(-200px) rotateY(-9deg);
}
.cl1:nth-child(4) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; position: absolute; opacity: 0.5; width: 200px; height: 200px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateY(100px) rotateX(-90deg);
}
.contain1:hover .cl1:nth-child(4) { -webkit-transform: translateY(200px) rotateX(-9deg);
}
.cl1:nth-child(5) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; position: absolute; opacity: 0.5; width: 200px; height: 200px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateZ(-100px);
}
.contain1:hover .cl1:nth-child(5) { -webkit-transform: translateZ(-200px);
}
.cl1:nth-child(6) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; position: absolute; opacity: 0.5; width: 200px; height: 200px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateZ(100px);
}
.contain1:hover .cl1:nth-child(6) { -webkit-transform: translateZ(200px);
}
.cl1:nth-child(7) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); position: absolute; opacity: 0.5; width: 100px; height: 100px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateX(50px) rotateY(90deg);
}
.contain1:hover .cl1:nth-child(7) { -webkit-transform: translateX(100px) rotateY(9deg);
}
.cl1:nth-child(8) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); position: absolute; opacity: 0.5; width: 100px; height: 100px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateY(-50px) rotateX(90deg);
}
.contain1:hover .cl1:nth-child(8) { -webkit-transform: translateY(-100px) rotateX(9deg);
}
.cl1:nth-child(9) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); position: absolute; opacity: 0.5; width: 100px; height: 100px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateX(-50px) rotateY(-90deg);
}
.contain1:hover .cl1:nth-child(9) { -webkit-transform: translateX(-100px) rotateY(-9deg);
}
.cl1:nth-child(10) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); position: absolute; opacity: 0.5; width: 100px; height: 100px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateY(50px) rotateX(-90deg);
}
.contain1:hover .cl1:nth-child(10) { -webkit-transform: translateY(100px) rotateX(-9deg);
}
.cl1:nth-child(11) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); position: absolute; opacity: 0.5; width: 100px; height: 100px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateZ(-50px);
}
.contain1:hover .cl1:nth-child(11) { -webkit-transform: translateZ(-100px);
}
.cl1:nth-child(12) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); position: absolute; opacity: 0.5; width: 100px; height: 100px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateZ(50px);
}
.contain1:hover .cl1:nth-child(12) { -webkit-transform: translateZ(100px);
}
.cl1:nth-child(13) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); left: 275px; top: 175px; background: -webkit-linear-gradient(blue, green, violet, indigo); position: absolute; opacity: 0.5; width: 50px; height: 50px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateX(25px) rotateY(90deg);
}
.contain1:hover .cl1:nth-child(13) { -webkit-transform: translateX(50px) rotateY(9deg);
}
.cl1:nth-child(14) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); left: 275px; top: 175px; background: -webkit-linear-gradient(blue, green, violet, indigo); position: absolute; opacity: 0.5; width: 50px; height: 50px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateY(-25px) rotateX(90deg);
}
.contain1:hover .cl1:nth-child(14) { -webkit-transform: translateY(-50px) rotateX(9deg);
}
.cl1:nth-child(15) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); left: 275px; top: 175px; background: -webkit-linear-gradient(blue, green, violet, indigo); position: absolute; opacity: 0.5; width: 50px; height: 50px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateX(-25px) rotateY(-90deg);
}
.contain1:hover .cl1:nth-child(15) { -webkit-transform: translateX(-50px) rotateY(-9deg);
}
.cl1:nth-child(16) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); left: 275px; top: 175px; background: -webkit-linear-gradient(blue, green, violet, indigo); position: absolute; opacity: 0.5; width: 50px; height: 50px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateY(25px) rotateX(-90deg);
}
.contain1:hover .cl1:nth-child(16) { -webkit-transform: translateY(50px) rotateX(-9deg);
}
.cl1:nth-child(17) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); left: 275px; top: 175px; background: -webkit-linear-gradient(blue, green, violet, indigo); position: absolute; opacity: 0.5; width: 50px; height: 50px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateZ(-25px);
}
.contain1:hover .cl1:nth-child(17) { -webkit-transform: translateZ(-50px);
}
.cl1:nth-child(18) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); left: 275px; top: 175px; background: -webkit-linear-gradient(blue, green, violet, indigo); position: absolute; opacity: 0.5; width: 50px; height: 50px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateZ(25px);
}
.contain1:hover .cl1:nth-child(18) { -webkit-transform: translateZ(50px);
}
.contain1 { position: absolute; width: 100%; height: 100%; -webkit-transform-style: preserve-3d; -webkit-animation: mybackground 6s linear infinite;
}
@-webkit-keyframes mybackground { 100% { -webkit-transform: rotateY(360deg) rotateX(360deg); }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class='contain1'> <div class='cl1'></div> <div class='cl1'></div> <div class='cl1'></div> <div class='cl1'></div> <div class='cl1'></div> <div class='cl1'></div> <div class='cl1'></div> <div class='cl1'></div> <div class='cl1'></div> <div class='cl1'></div> <div class='cl1'></div> <div class='cl1'></div> <div class='cl1'></div> <div class='cl1'></div> <div class='cl1'></div> <div class='cl1'></div> <div class='cl1'></div> <div class='cl1'></div>
</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>

Simple Opening SCSS Cubes - Script Codes CSS Codes

body { width: 100%; height: 100%; background: black; overflow: hidden;
}
.cl1:nth-child(1) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; position: absolute; opacity: 0.5; width: 200px; height: 200px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateX(100px) rotateY(90deg);
}
.contain1:hover .cl1:nth-child(1) { -webkit-transform: translateX(200px) rotateY(9deg);
}
.cl1:nth-child(2) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; position: absolute; opacity: 0.5; width: 200px; height: 200px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateY(-100px) rotateX(90deg);
}
.contain1:hover .cl1:nth-child(2) { -webkit-transform: translateY(-200px) rotateX(9deg);
}
.cl1:nth-child(3) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; position: absolute; opacity: 0.5; width: 200px; height: 200px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateX(-100px) rotateY(-90deg);
}
.contain1:hover .cl1:nth-child(3) { -webkit-transform: translateX(-200px) rotateY(-9deg);
}
.cl1:nth-child(4) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; position: absolute; opacity: 0.5; width: 200px; height: 200px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateY(100px) rotateX(-90deg);
}
.contain1:hover .cl1:nth-child(4) { -webkit-transform: translateY(200px) rotateX(-9deg);
}
.cl1:nth-child(5) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; position: absolute; opacity: 0.5; width: 200px; height: 200px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateZ(-100px);
}
.contain1:hover .cl1:nth-child(5) { -webkit-transform: translateZ(-200px);
}
.cl1:nth-child(6) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; position: absolute; opacity: 0.5; width: 200px; height: 200px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateZ(100px);
}
.contain1:hover .cl1:nth-child(6) { -webkit-transform: translateZ(200px);
}
.cl1:nth-child(7) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); position: absolute; opacity: 0.5; width: 100px; height: 100px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateX(50px) rotateY(90deg);
}
.contain1:hover .cl1:nth-child(7) { -webkit-transform: translateX(100px) rotateY(9deg);
}
.cl1:nth-child(8) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); position: absolute; opacity: 0.5; width: 100px; height: 100px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateY(-50px) rotateX(90deg);
}
.contain1:hover .cl1:nth-child(8) { -webkit-transform: translateY(-100px) rotateX(9deg);
}
.cl1:nth-child(9) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); position: absolute; opacity: 0.5; width: 100px; height: 100px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateX(-50px) rotateY(-90deg);
}
.contain1:hover .cl1:nth-child(9) { -webkit-transform: translateX(-100px) rotateY(-9deg);
}
.cl1:nth-child(10) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); position: absolute; opacity: 0.5; width: 100px; height: 100px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateY(50px) rotateX(-90deg);
}
.contain1:hover .cl1:nth-child(10) { -webkit-transform: translateY(100px) rotateX(-9deg);
}
.cl1:nth-child(11) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); position: absolute; opacity: 0.5; width: 100px; height: 100px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateZ(-50px);
}
.contain1:hover .cl1:nth-child(11) { -webkit-transform: translateZ(-100px);
}
.cl1:nth-child(12) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); position: absolute; opacity: 0.5; width: 100px; height: 100px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateZ(50px);
}
.contain1:hover .cl1:nth-child(12) { -webkit-transform: translateZ(100px);
}
.cl1:nth-child(13) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); left: 275px; top: 175px; background: -webkit-linear-gradient(blue, green, violet, indigo); position: absolute; opacity: 0.5; width: 50px; height: 50px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateX(25px) rotateY(90deg);
}
.contain1:hover .cl1:nth-child(13) { -webkit-transform: translateX(50px) rotateY(9deg);
}
.cl1:nth-child(14) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); left: 275px; top: 175px; background: -webkit-linear-gradient(blue, green, violet, indigo); position: absolute; opacity: 0.5; width: 50px; height: 50px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateY(-25px) rotateX(90deg);
}
.contain1:hover .cl1:nth-child(14) { -webkit-transform: translateY(-50px) rotateX(9deg);
}
.cl1:nth-child(15) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); left: 275px; top: 175px; background: -webkit-linear-gradient(blue, green, violet, indigo); position: absolute; opacity: 0.5; width: 50px; height: 50px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateX(-25px) rotateY(-90deg);
}
.contain1:hover .cl1:nth-child(15) { -webkit-transform: translateX(-50px) rotateY(-9deg);
}
.cl1:nth-child(16) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); left: 275px; top: 175px; background: -webkit-linear-gradient(blue, green, violet, indigo); position: absolute; opacity: 0.5; width: 50px; height: 50px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateY(25px) rotateX(-90deg);
}
.contain1:hover .cl1:nth-child(16) { -webkit-transform: translateY(50px) rotateX(-9deg);
}
.cl1:nth-child(17) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); left: 275px; top: 175px; background: -webkit-linear-gradient(blue, green, violet, indigo); position: absolute; opacity: 0.5; width: 50px; height: 50px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateZ(-25px);
}
.contain1:hover .cl1:nth-child(17) { -webkit-transform: translateZ(-50px);
}
.cl1:nth-child(18) { background: -webkit-linear-gradient(gray, white); left: 200px; top: 100px; left: 250px; top: 150px; background: -webkit-linear-gradient(red, yellow, orange); left: 275px; top: 175px; background: -webkit-linear-gradient(blue, green, violet, indigo); position: absolute; opacity: 0.5; width: 50px; height: 50px; -webkit-transform-style: preserve-3d; -webkit-transition: transform 2s ease-in-out; box-shadow: inset 0px 0px 20px 0px darkblue; -webkit-transform: translateZ(25px);
}
.contain1:hover .cl1:nth-child(18) { -webkit-transform: translateZ(50px);
}
.contain1 { position: absolute; width: 100%; height: 100%; -webkit-transform-style: preserve-3d; -webkit-animation: mybackground 6s linear infinite;
}
@-webkit-keyframes mybackground { 100% { -webkit-transform: rotateY(360deg) rotateX(360deg); }
}

Simple Opening SCSS Cubes - Script Codes JS Codes

//hover to open the cubes..view a better extension of this pen I made for 'n' cubes.. https://codepen.io/unmeshpro/pen/inBfv
Simple Opening SCSS Cubes - Script Codes
Simple Opening SCSS Cubes - Script Codes
Home Page Home
Developer Unmesh Shukla
Username unmeshpro
Uploaded September 03, 2022
Rating 3.5
Size 4,200 Kb
Views 28,336
Do you need developer help for Simple Opening SCSS Cubes?

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!

Unmesh Shukla (unmeshpro) Script Codes
Create amazing SEO content 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!