3D Hexagon Text Roller

Size
2,289 Kb
Views
30,360

How do I make an 3d hexagon text roller?

Splash Page Text Roller for a Finance Startup . What is a 3d hexagon text roller? How do you make a 3d hexagon text roller? This script and codes were developed by Jeff Scott Ward on 28 August 2022, Sunday.

3D Hexagon Text Roller Previews

3D Hexagon Text Roller - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>3D Hexagon Text Roller</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="carousel-wrapper"> <div id="carousel" data-state="1" style="-webkit-transform: rotateX(0deg)"> <figure>Side 1</figure> <figure>Side 2</figure> <figure>Side 3</figure> <figure>Side 4</figure> <figure>Side 5</figure> <figure>Side 6</figure> </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>

3D Hexagon Text Roller - Script Codes CSS Codes

body { background: #333; }
#carousel-wrapper,
#carousel figure { height: 100px; line-height: 100px; color: white;
}
#carousel figure:nth-of-type(1) {-webkit-transform: rotateX(0deg) translateZ(86px);}
#carousel figure:nth-of-type(2) {-webkit-transform: rotateX(60deg) translateZ(86px);}
#carousel figure:nth-of-type(3) {-webkit-transform: rotateX(120deg) translateZ(86px);}
#carousel figure:nth-of-type(4) {-webkit-transform: rotateX(180deg) translateZ(86px);}
#carousel figure:nth-of-type(5) {-webkit-transform: rotateX(240deg) translateZ(86px);}
#carousel figure:nth-of-type(6) {-webkit-transform: rotateX(300deg) translateZ(86px);}
#carousel[data-state="1"] figure:nth-of-type(1),
#carousel[data-state="2"] figure:nth-of-type(2),
#carousel[data-state="3"] figure:nth-of-type(3),
#carousel[data-state="4"] figure:nth-of-type(4),
#carousel[data-state="5"] figure:nth-of-type(5),
#carousel[data-state="6"] figure:nth-of-type(6) { opacity: 1; }
#carousel-wrapper { position: absolute; top: 30%; left: 25%; width: 50%; text-align: center; perspective: 1100px;
}
#carousel { width: 100%; height: 100%; position: absolute; z-index: 100; transform-style: preserve-3d; transition: all 1s;
}
#carousel figure { display: block; position: absolute; width: 100%; margin: 0; font-size: 40px; font-weight: bold; color: black; text-align: center; opacity: .2; transition: all 1s; backface-visibility: hidden;
}

3D Hexagon Text Roller - Script Codes JS Codes

let increment = 0;
const carousel = $('#carousel');
setInterval(() => { increment++; carousel.css({ '-webkit-transform': 'rotateX(' + (increment * -60) + 'deg)' }) carousel.attr('data-state', (increment % 6) + 1);
}, 2000)
3D Hexagon Text Roller - Script Codes
3D Hexagon Text Roller - Script Codes
Home Page Home
Developer Jeff Scott Ward
Username jeffscottward
Uploaded August 28, 2022
Rating 3
Size 2,289 Kb
Views 30,360
Do you need developer help for 3D Hexagon Text Roller?

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!

Jeff Scott Ward (jeffscottward) Script Codes
Create amazing Facebook ads 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!