Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>CSS-Only Webpage</title>
- <link rel="shortcut icon" type="image/png" href="http://cybersandbox.ca/wp-content/uploads/2020/08/fav-css.png"/>
- <meta charset="UTF-8">
- <meta name="author" content="Carter Lovelace">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <style type="text/css">
- @import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;700&display=swap');
- html {
- font-family: 'Josefin Sans', sans-serif;
- width: 100vw;
- height: 100vh;
- background: #00beef;
- overflow-x: hidden;
- }
- head {
- display: block;
- max-width: 1000px;
- margin: 0 auto;
- transition: all 0.25s ease;
- -webkit-transition: all 0.25s ease;
- opacity: 0.95;
- pointer-events: all;
- }
- head::before {
- content: "This page was created using NOTHING but CSS!";
- padding: 60px 30px 500px 30px;
- text-align: center;
- font-weight: bold;
- color: #111;
- font-size: 34px;
- letter-spacing: 0.05em;
- display: block;
- background: white;
- position: relative;
- border: 2px solid #1c95b4 !important;
- border-radius: 5px;
- box-shadow: 0 0 5px rgba(0,0,0,0.5);
- }
- head:hover {
- transform: scale(1.03);
- -webkit-transform: scale(1.03);
- opacity: 1;
- }
- head:hover::before {
- border: 3px solid darkorange !important;
- }
- head::after {
- content: "...other than HTML meta information. And I wouldn't exactly call repurposing meta tags into layout elements 'cheating' because, I mean, what else was I supposed to do? If you're wondering why this page exists, go ahead and hover this section.";
- display: block;
- position: relative;
- max-width: 600px;
- padding: 20px 50px;
- margin: -500px auto 0 auto;
- border-top: 5px solid darkorange;
- height: 300px;
- }
- head:hover::after {
- height: 300px;
- content: "All for the sake of a good challenge! This page was needlessly convoluted to create and it can't actually do anything. Not even a hyperlink, a site like this would hyperstink. Plus, it's impossible for search algorythms to get anything useful from it.";
- }
- meta:nth-of-type(2), meta:nth-of-type(1) {
- display: block;
- position: absolute;
- max-width: 400px;
- width: 85%;
- height: 300px;
- left: 50%;
- transform: translateX(-50%);
- overflow: hidden;
- top: 300px;
- }
- head:hover meta:nth-of-type(2), head:hover meta:nth-of-type(1) {
- top: 280px;
- }
- meta:nth-of-type(1) {
- border: 1px solid #95795b;
- background-image: url(http://cybersandbox.ca/wp-content/uploads/2019/10/Moth-1030x687.png);
- background-color: rgba(0, 0, 0, 0);
- background-position: center;
- background-size: auto 101%;
- background-repeat: round;
- animation-name: bgMove;
- animation-duration: 5s;
- animation-iteration-count: infinite;
- }
- head:hover meta:nth-of-type(1) {
- background-image: url(http://cybersandbox.ca/wp-content/uploads/2019/10/HoAFer.png);
- }
- meta:nth-of-type(1)::after {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: #bfac97;
- mix-blend-mode: color;
- content: " ";
- padding: 5px;
- }
- meta:nth-of-type(1)::before {
- content: "'Moth' By Jessi Lovelace";
- padding: 5px;
- line-height: 2em;
- text-shadow: 2px 2px 0 white;
- }
- head:hover meta:nth-of-type(1)::before {
- content:"'HoAFer' by Carter Lovelace";
- }
- meta:nth-of-type(2)::before {
- content: ' ';
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- animation-name: gradientSize;
- animation-duration: 1.5s;
- animation-iteration-count: infinite;
- -moz-box-shadow: inset 0 0 10em black;
- -webkit-box-shadow: inset 0 0 10em black;
- box-shadow: inset 0 0 10em black;
- }
- meta:nth-of-type(2)::after {
- width: 1px;
- height: 100%;
- background: black;
- content: ' ';
- display: block;
- position: absolute;
- animation-name: moveLine;
- animation-duration: 8s;
- animation-iteration-count: infinite;
- }
- footer {
- background: #111;
- display: block;
- position: absolute;
- color: white !important;
- right: 10px;
- top: 10px;
- font-size: 35px;
- font-weight: bold;
- line-height: 57px;
- width: 50px;
- height: 50px;
- border-radius: 100%;
- text-align: center;
- transition: all 0.25s ease;
- -webkit-transition: all 0.25s ease;
- opacity: 0.95;
- cursor: pointer;
- }
- footer:hover {
- opacity: 1;
- transform: scale(1.1);
- -webkit-transform: scale(1.1);
- }
- footer::after {
- content: "?";
- }
- footer::before {
- content: "Made by Carter Lovelace! ▬▬▬▬▬ Contact Me ▬▬▬▬▬ carter@strategylab.ca";
- text-align: center;
- display: block;
- position: absolute;
- background: white;
- padding: 10px;
- width: 280px;
- top: 5px;
- border-radius: 10px;
- border: 1px solid #ddd;
- right: -100px;
- font-size: 16px;
- line-height: 1.5em;
- color: #111;
- pointer-events: none;
- opacity: 0;
- transition: all 0.25s ease;
- -webkit-transition: all 0.25s ease;
- }
- footer:hover::before {
- right: 5px;
- opacity: 1;
- }
- @media only screen and (max-width: 546px) {
- head:hover meta:nth-of-type(2), head:hover meta:nth-of-type(1), meta:nth-of-type(2), meta:nth-of-type(1) {
- top: 400px !important;
- height: 250px;
- }
- head::before {
- padding-top: 30px !important;
- }
- }
- @media only screen and (max-width: 1000px) {
- head::before {
- margin: 15px;
- }
- head::after {
- margin: -500px 40px 50px 40px;
- padding: 20px 0 !important;
- }
- }
- @media only screen and (min-width: 1000px) {
- head::before {
- width: 940px;
- margin: 25px auto;
- }
- }
- @keyframes gradientSize {
- 0% {
- opacity: 0.3;
- }
- 10% {
- opacity: 0.4;
- }
- 20% {
- opacity: 0.25;
- }
- 30% {
- opacity: 0.5;
- }
- 40% {
- opacity: 0.75;
- }
- 50% {
- opacity: 0.5;
- }
- 60% {
- opacity: 1;
- }
- 70% {
- opacity: 0.75;
- }
- 80% {
- opacity: 0.5;
- }
- 90% {
- opacity: 0.25;
- }
- 100% {
- opacity: 0.5;
- }
- }
- @keyframes moveLine {
- 0% {
- left: 0;
- opacity: 0;
- }
- 9% {
- left: 0;
- opacity: 0;
- }
- 10% {
- left: 15%;
- opacity: 0.25;
- }
- 15% {
- left: 20%;
- opacity: 0.1;
- }
- 20% {
- left: 10%;
- opacity: 0.2;
- }
- 25% {
- left: 25%;
- opacity: 0.2;
- }
- 30% {
- left: 30%;
- opacity: 0.3;
- }
- 40% {
- left: 20%;
- opacity: 0.2;
- }
- 50% {
- left: 30%;
- opacity: 0.1;
- }
- 60% {
- left: 20%;
- opacity: 0.2;
- }
- 70% {
- left: 0%;
- opacity: 0.2;
- }
- 80% {
- left: 10%;
- opacity: 0.2;
- }
- 90% {
- left: 30%;
- opacity: 0.3;
- }
- 100% {
- left: 10%;
- opacity: 0.1;
- }
- }
- @keyframes bgMove {
- 0% {
- background-position: 0px center;
- }
- 5% {
- background-position: 0 center;
- }
- 10% {
- background-position: 0 -2px;
- }
- 15% {
- background-position: 0 center;
- }
- 30% {
- background-position: 0px center;
- }
- 37% {
- background-position: 0 -2px;
- }
- 40% {
- background-position: 0px center;
- }
- 45% {
- background-position: 0 2px;
- }
- 50% {
- background-position: 0px center;
- }
- 62% {
- background-position: 0px center;
- }
- 65% {
- background-position: 0 -2px;
- }
- 67% {
- background-position: 0px center;
- }
- 78% {
- background-position: 0px center;
- }
- 80% {
- background-position: 0 2px;
- }
- 85% {
- background-position: 0 center;
- }
- 87% {
- background-position: 0 center;
- }
- 89% {
- background-position: 0 -2px;
- }
- 91% {
- background-position: 0 center;
- }
- 100% {
- background-position: 0px center;
- }
- }
- </style>
- </head>
- <body>
- <footer>
- </footer>
- </body>
- </html>
Add Comment
Please, Sign In to add comment