A Pen by Alex Bergin

Developer
Size
3,347 Kb
Views
60,720

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 Previews

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);
A Pen by Alex Bergin - Script Codes
A Pen by Alex Bergin - Script Codes
Home Page Home
Developer Alex Bergin
Username abergin
Uploaded June 13, 2022
Rating 4.5
Size 3,347 Kb
Views 60,720
Do you need developer help for A Pen by Alex Bergin?

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!

Alex Bergin (abergin) Script Codes
Create amazing captions 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!