A Pen by Alex Bergin
How do I make an a pen by alex bergin?
What is a a pen by alex bergin? How do you make a a pen by alex bergin? This script and codes were developed by Alex Bergin on 13 June 2022, Monday.
A Pen by Alex Bergin - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by Alex Bergin</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <ul> <li data-letter="H"></li> <li data-letter="E"></li> <li data-letter="L"></li> <li data-letter="L"></li> <li data-letter="O"></li>
<br /> <li data-letter="W"></li> <li data-letter="O"></li> <li data-letter="R"></li> <li data-letter="L"></li> <li data-letter="D"></li>
</ul> <script src="js/index.js"></script>
</body>
</html>
A Pen by Alex Bergin - Script Codes CSS Codes
html { background-color: gray;
}
ul { width: 100%; -webkit-transform: translate(0, -50%); transform: translate(0, -50%); position: absolute; text-align: center; font-size: 0; left: 0; top: 50%;
}
ul li { display: inline-block; position: relative; text-align: center; line-height: 15vw; margin: 2vw 0; height: 15vw; width: 15vw;
}
@media screen and (orientation: landscape) { ul li { line-height: 15vh; margin: 2vh 0; height: 15vh; width: 15vh; }
}
ul li:before, ul li:after { -webkit-transition: -webkit-transform 0.25s ease-in-out; transition: -webkit-transform 0.25s ease-in-out; transition: transform 0.25s ease-in-out; transition: transform 0.25s ease-in-out, -webkit-transform 0.25s ease-in-out; content: attr(data-letter); font-family: sans-serif; font-weight: 100; font-size: 3vw; position: absolute; height: 100%; width: 100%; left: 0; top: 0;
}
@media screen and (orientation: landscape) { ul li:before, ul li:after { font-size: 3vh; }
}
ul li[data-letter=" "] { opacity: 0;
}
ul li:before { -webkit-transform-origin: top center; transform-origin: top center; -webkit-transform: translate(0, 100%) rotateX(-90deg); transform: translate(0, 100%) rotateX(-90deg); background-color: black; z-index: 1; color: white;
}
ul li:after { -webkit-transform: translate(0, 0) rotateX(0deg); transform: translate(0, 0) rotateX(0deg); -webkit-transform-origin: bottom center; transform-origin: bottom center; background-color: white; z-index: 1; color: black;
}
ul li:nth-of-type(10n+1):before { -webkit-transition-delay: 0s; transition-delay: 0s;
}
ul li:nth-of-type(10n+2):before { -webkit-transition-delay: 0.05s; transition-delay: 0.05s;
}
ul li:nth-of-type(10n+3):before { -webkit-transition-delay: 0.1s; transition-delay: 0.1s;
}
ul li:nth-of-type(10n+4):before { -webkit-transition-delay: 0.15s; transition-delay: 0.15s;
}
ul li:nth-of-type(10n+5):before { -webkit-transition-delay: 0.2s; transition-delay: 0.2s;
}
ul li:nth-of-type(10n+6):before { -webkit-transition-delay: 0.25s; transition-delay: 0.25s;
}
ul li:nth-of-type(10n+7):before { -webkit-transition-delay: 0.3s; transition-delay: 0.3s;
}
ul li:nth-of-type(10n+8):before { -webkit-transition-delay: 0.35s; transition-delay: 0.35s;
}
ul li:nth-of-type(10n+9):before { -webkit-transition-delay: 0.4s; transition-delay: 0.4s;
}
ul li:nth-of-type(10n+10):before { -webkit-transition-delay: 0.45s; transition-delay: 0.45s;
}
ul li:nth-of-type(10n+1):after { -webkit-transition-delay: 0s; transition-delay: 0s;
}
ul li:nth-of-type(10n+2):after { -webkit-transition-delay: 0.05s; transition-delay: 0.05s;
}
ul li:nth-of-type(10n+3):after { -webkit-transition-delay: 0.1s; transition-delay: 0.1s;
}
ul li:nth-of-type(10n+4):after { -webkit-transition-delay: 0.15s; transition-delay: 0.15s;
}
ul li:nth-of-type(10n+5):after { -webkit-transition-delay: 0.2s; transition-delay: 0.2s;
}
ul li:nth-of-type(10n+6):after { -webkit-transition-delay: 0.25s; transition-delay: 0.25s;
}
ul li:nth-of-type(10n+7):after { -webkit-transition-delay: 0.3s; transition-delay: 0.3s;
}
ul li:nth-of-type(10n+8):after { -webkit-transition-delay: 0.35s; transition-delay: 0.35s;
}
ul li:nth-of-type(10n+9):after { -webkit-transition-delay: 0.4s; transition-delay: 0.4s;
}
ul li:nth-of-type(10n+10):after { -webkit-transition-delay: 0.45s; transition-delay: 0.45s;
}
html.active ul li:before { -webkit-transform: translate(0, 0) rotateX(0deg); transform: translate(0, 0) rotateX(0deg); z-index: 2;
}
html.active ul li:after { -webkit-transform: translate(0, -100%) rotateX(90deg); transform: translate(0, -100%) rotateX(90deg); z-index: 1;
}
html.active ul li:after[data-letter=" "] { opacity: 0;
}
A Pen by Alex Bergin - Script Codes JS Codes
(function() { setInterval((function(_this) { return function() { return document.querySelector("html").classList.toggle("active"); }; })(this), 1000);
}).call(this);

Developer | Alex Bergin |
Username | abergin |
Uploaded | June 13, 2022 |
Rating | 4.5 |
Size | 3,347 Kb |
Views | 60,690 |
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 |
SASS Placeholder Style Mixin | 2,130 Kb |
3D Accelerometer Ball Pit | 8,397 Kb |
Show Nav On Scroll | 4,898 Kb |
Background animation | 5,314 Kb |
Activate on Scroll | 3,358 Kb |
Singing Text To Speech | 9,647 Kb |
B - Bicycle | 3,983 Kb |
Bauble | 5,287 Kb |
Fancy Text Inputs | 3,934 Kb |
Spinning Liquid In Box Loader Doodle | 2,992 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 |
Fullscreen audio play button | 72 | 2,148 Kb |
Opening Reveal Modal On Document Ready | Winghouchan | 1,787 Kb |
Pure CSS Tooltip | APinix | 2,815 Kb |
Border image | JohnRiordan | 2,120 Kb |
Classy Blockquote Styling | Andrewwright | 3,212 Kb |
Retina canvas w. resize | Erikterwan | 1,882 Kb |
Form Labels | Bartuc | 2,717 Kb |
BabyStore | Pablo-Ai | 3,807 Kb |
Pruebas de d3.js | Juanmanuelcarnerero | 2,485 Kb |
CSS Patterns | Alyda | 3,953 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!