3D Hexagon Text Roller
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 - 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)
Developer | Jeff Scott Ward |
Username | jeffscottward |
Uploaded | August 28, 2022 |
Rating | 3 |
Size | 2,289 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 |
Panning Wall Tiles | 2,822 Kb |
Lab 49 Logo Animated | 3,749 Kb |
Impress JS Algorhytmic Generator | 7,906 Kb |
Brick Breaker | 3,547 Kb |
Trader Phone APP UI | 6,799 Kb |
Pure CSS Responsive Slider | 5,404 Kb |
A Pen by Jeff Scott Ward | 696,840 Kb |
Sprite Animation | 2,669 Kb |
XBOX 360 UI | 9,781 Kb |
Object Oriented SASS Framework | 8,564 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 |
Portfolio Page | KaylaMT | 1,983 Kb |
Obligatory CSS3 UI Nav | Romandiaz | 9,017 Kb |
Hc first draft | Stepfray | 5,104 Kb |
IE flex collapse bug fix | Rowno | 2,678 Kb |
Resizable SASS Icons | Marianarlt | 7,611 Kb |
Vertical Pan Hammer.js example | Jtangelder | 2,144 Kb |
Em Test | Rodesco | 1,784 Kb |
Layout 11 | Altynai | 1,690 Kb |
Free css icon set v2 - one div | Ben_jammin | 0 Kb |
Midterm dry run | Jds317 | 1,649 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!