Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!-- Background stuff -->
<div class="grids">
	<div class="bg"></div>
	<div class="bg2"></div>
	<div class="h">
		<i></i>
	</div>
	<div class="v">
		<i></i>
		<i></i>
		<i></i>
		<i></i>
		<i></i>
		<i></i>
		<i></i>
		<i></i>
		<i></i>
		<i></i>
		<i></i>
		<i></i>
		<i></i>
		<i></i>
		<i></i>
		<i></i>
		<i></i>
		<i></i>
		<i></i>
	</div>
</div>
<!-- Pacman stuff -->
<div class="pathway"></div>
<div class="pathwayDots"></div>
<div class="pathwayBar1"></div>
<div class="pathwayBar2"></div>
<div class="pathwayBar3"></div>
<div class="pathwayBar4"></div>
<div class="pacman">
	<div class="pacman-body"></div>
	<div class="pacman-mouth"></div>
</div>

<!-- Magazine stuff -->
<h1 class="headline">Arcade Life</h1>
<h2 class="subhead">The next generation of arcade gamers top the leaderboard</h2>
<div class="article-meta">
	<svg id="author-avatar" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg" width="80" height="80">
		<title id="avatarTitle">Author Avatar</title>
		<desc id="avatarDesc">A cartoon avatar of a smiling purple square on a blue background.</desc>
		<mask id="mask__beam" maskUnits="userSpaceOnUse" x="0" y="0" width="36" height="36">
			<rect width="36" height="36" rx="72" fill="white"></rect>
		</mask>
		<g mask="url(#mask__beam)">
			<rect width="36" height="36" fill="#0ebeff"></rect>
			<rect x="0" y="0" width="36" height="36" transform="translate(6 6) rotate(192 18 18) scale(1)" fill="#754cac" rx="6"></rect>
			<g transform="translate(0 2) rotate(-2 18 18)">
				<path d="M13,19 a1,0.75 0 0,0 10,0" fill="white"></path>
				<rect x="12" y="14" width="1.5" height="2" rx="1" stroke="none" fill="white"></rect>
				<rect x="22" y="14" width="1.5" height="2" rx="1" stroke="none" fill="white"></rect>
			</g>
		</g>
	</svg>
	<p class="byline">by Penny Pen</p>
	<p class="dateline">June 21, 2021</p>
	<p class="article-tags">
		<span class="tag">culture</span> <span class="tag">games</span> <span class="tag featured">featured</span>
	</p>
</div>
<div class="magazine-content">
	<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis quidem est minima quam! Laborum odit quidem earum perferendis eius laudantium perspiciatis similique deleniti delectus suscipit, cum corrupti facere reprehenderit esse.</p>
	<p>Animi aut, atque quibusdam similique distinctio enim iure, blanditiis rerum autem illum eum in. Dolorem quasi aspernatur nemo deserunt quo, libero dolore atque magni, ullam nihil corrupti et illo earum?</p>
	<p>Quos, ad? Et, iure. Officia fuga unde quibusdam nemo modi perspiciatis quisquam consectetur voluptates, dolore ab eaque voluptatem corporis placeat consequatur itaque qui asperiores. Consequuntur quas vitae animi est ea!</p>
	<p>Accusantium nemo labore corrupti laudantium! Quo reprehenderit ea perspiciatis temporibus! Illo sapiente harum fuga molestias temporibus iste animi. Velit, tenetur mollitia sit magni nulla quos veniam molestias consectetur aliquam eaque.</p>
	<p>Voluptatem, omnis, placeat recusandae iste explicabo accusantium velit laboriosam voluptatum similique, fugit culpa enim! Suscipit labore odit porro assumenda, molestiae aperiam laboriosam explicabo nemo soluta facere sed libero magnam. Odio.</p>

	<aside>
		<p>Quos, ad? Et, iure. Libero dolore atque magni.</p>
	</aside>

	<figure><img src="https://assets.codepen.io/t-1/freddy-g-lhy1lY3CyLI-unsplash.jpg" alt="a smiling person in a pink hoodie, standing in front of a bright pink lighted arcade basketball game. " />
		<figcaption>Photo by Freddy G</figcaption>
	</figure>
	<!-- full size image: https://images.unsplash.com/flagged/photo-1556339911-7ef846e7db43-->

	<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis quidem est minima quam! Laborum odit quidem earum perferendis eius laudantium perspiciatis similique deleniti delectus suscipit, cum corrupti facere reprehenderit esse. Sed officia ipsum, soluta quibusdam enim quisquam ea atque nulla sunt temporibus, dolorum veniam dolor aspernatur quod. Praesentium vitae exercitationem quod, inventore eius quidem ea sit, nemo reprehenderit voluptatum officia.</p>
	p>Animi aut, atque quibusdam similique distinctio enim iure, blanditiis rerum autem illum eum in. Dolorem quasi aspernatur nemo deserunt quo, libero dolore atque magni, ullam nihil corrupti et illo earum?</p>
	<p>Voluptatem, omnis, placeat recusandae iste explicabo accusantium velit laboriosam voluptatum similique, fugit culpa enim! Suscipit labore odit porro assumenda, molestiae aperiam laboriosam explicabo nemo soluta facere sed libero magnam. Odio.</p>
	<p>Quae, cumque blanditiis? Nisi rem ullam, ducimus qui praesentium, temporibus mollitia ex voluptatibus aut accusamus reprehenderit soluta eius expedita dicta adipisci debitis repudiandae quibusdam laborum possimus cupiditate quidem doloribus quas.</p>
	<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Harum vitae debitis reiciendis nam molestias, iure, recusandae magnam cupiditate ut dolore aliquam nesciunt ipsum sit illum nihil quibusdam mollitia veritatis maiores.</p>

	<h2>High Scores &amp; High Drama</h2>

	<p>Voluptatem, omnis, placeat recusandae iste explicabo accusantium velit laboriosam voluptatum similique, fugit culpa enim! Suscipit labore odit porro assumenda, molestiae aperiam laboriosam explicabo nemo soluta facere sed libero magnam. Odio.</p>
	<p>Animi aut, atque quibusdam similique distinctio enim iure, blanditiis rerum autem illum eum in. Dolorem quasi aspernatur nemo deserunt quo, libero dolore atque magni, ullam nihil corrupti et illo earum?</p>
	<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis quidem est minima quam! Laborum odit quidem earum perferendis eius laudantium perspiciatis similique deleniti delectus suscipit, cum corrupti facere reprehenderit esse.</p>

	<figure><img src="https://assets.codepen.io/t-1/cassidy-james-blaede-1lzJt360gkE-unsplash.jpg" alt="two people playing Guitar Hero Arcade. " />
		<figcaption>Photo by Cassidy James Blaede</figcaption>
	</figure>
	<!-- full size image: https://images.unsplash.com/photo-1536818968680-deeec2e9fd11-->

	<p>Voluptatem, omnis, placeat recusandae iste explicabo accusantium velit laboriosam voluptatum similique, fugit culpa enim! Suscipit labore odit porro assumenda, molestiae aperiam laboriosam explicabo nemo soluta facere sed libero magnam. Odio.</p>
	<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Id amet ad blanditiis vero delectus incidunt tempore reiciendis eius qui vel placeat reprehenderit, ut, dolore asperiores possimus impedit. Ipsum, culpa eaque!</p>
	<p>Velit vero esse quisquam accusantium? Dolore alias, quaerat quod excepturi officiis ipsa placeat officia necessitatibus illo, vero quasi esse aut. Doloremque nesciunt placeat animi saepe tempore aspernatur, officia vitae laudantium!</p>

	<h2>Leveling Up</h2>
	<p>Animi aut, atque quibusdam similique distinctio enim iure, blanditiis rerum autem illum eum in. Dolorem quasi aspernatur nemo deserunt quo, libero dolore atque magni, ullam nihil corrupti et illo earum?</p>
	<figure><img src="https://assets.codepen.io/t-1/nick-jones-QTk3Llc-oKU-unsplash.jpg" alt="a person wearing a bucket hat, sitting on a skee ball machine lane. " />
		<figcaption>Photo by Nick Jones</figcaption>
	</figure>

	<!-- full size image: https://images.unsplash.com/photo-1601637155580-ac6c49428450-->

	<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis quidem est minima quam! Laborum odit quidem earum perferendis eius laudantium perspiciatis similique deleniti delectus suscipit, cum corrupti facere reprehenderit esse.</p>
	<p>Voluptatem, omnis, placeat recusandae iste explicabo accusantium velit laboriosam voluptatum similique, fugit culpa enim! Suscipit labore odit porro assumenda, molestiae aperiam laboriosam explicabo nemo soluta facere sed libero magnam. Odio.</p>
	<p>Animi aut, atque quibusdam similique distinctio enim iure, blanditiis rerum autem illum eum in. Dolorem quasi aspernatur nemo deserunt quo, libero dolore atque magni, ullam nihil corrupti et illo earum?</p>
	<p>Voluptatem, omnis, placeat recusandae iste explicabo accusantium velit laboriosam voluptatum similique, fugit culpa enim! Suscipit labore odit porro assumenda, molestiae aperiam laboriosam explicabo nemo soluta facere sed libero magnam. Odio.</p>
	<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Id amet ad blanditiis vero delectus incidunt tempore reiciendis eius qui vel placeat reprehenderit, ut, dolore asperiores possimus impedit. Ipsum, culpa eaque!</p>

	<figure><img src="https://assets.codepen.io/t-1/ersin-mandaliev-C5DC5bJhpRE-unsplash.jpg" alt="a person in black high-heeled boots sitting on an arcade basketball game. " />
		<figcaption>Photo by Ersin Mandaliev</figcaption>
	</figure>

	<!-- full size image: https://images.unsplash.com/flagged/photo-1556491168-3e6ffa3e26b2-->

	<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis quidem est minima quam! Laborum odit quidem earum perferendis eius laudantium perspiciatis similique deleniti delectus suscipit, cum corrupti facere reprehenderit esse.</p>
	<p>Velit vero esse quisquam accusantium? Dolore alias, quaerat quod excepturi officiis ipsa placeat officia necessitatibus illo, vero quasi esse aut. Doloremque nesciunt placeat animi saepe tempore aspernatur, officia vitae laudantium!</p>

	<figure><img src="https://assets.codepen.io/t-1/nick-jones-g7jhzbd9WFQ-unsplash.jpg" alt="a person in a white t-shirt sitting on a wheel of fortune arcade game. " />
		<figcaption>Photo by Nick Jones</figcaption>
	</figure>

	<!-- full size image: https://images.unsplash.com/photo-1604112900927-e4d6d3ce3a2e -->

	<p>Asperiores cum quisquam voluptate adipisci nihil ipsa eum libero recusandae inventore facilis modi nulla, provident ut, ad explicabo magnam unde voluptates commodi.</p>
	<p>Consectetur sed, itaque modi fugit asperiores similique maxime voluptatum incidunt labore vero cumque provident, deleniti nam? Molestiae impedit nostrum soluta quo iure, iste, nobis expedita minus ad officia dolor saepe.</p>
	<aside>
		<p>Labore vero cumque provident, deleniti nam, cumque vero.</p>
	</aside>
	<p>Consectetur sed, itaque modi fugit asperiores similique maxime voluptatum incidunt labore vero cumque provident, deleniti nam? Molestiae impedit nostrum soluta quo iure, iste, nobis expedita minus ad officia dolor saepe.</p>
	<p>Aperiam est ab harum alias quae rem, cumque vero. Dolore possimus quas eius dolor voluptatibus cumque velit, ratione aspernatur voluptatem? Nulla voluptatem quaerat placeat error, ipsam alias dignissimos odit excepturi?</p>

	<h2>Game Over?</h2>

	<p>Animi aut, atque quibusdam similique distinctio enim iure, blanditiis rerum autem illum eum in. Dolorem quasi aspernatur nemo deserunt quo, libero dolore atque magni, ullam nihil corrupti et illo earum?</p>

	<figure><img src="https://assets.codepen.io/t-1/element5-digital-dwcC-OJ-bRs-unsplash.jpg" alt="three neon-lit skee ball lanes. " />
		<figcaption>Photo by Element5 Digital</figcaption>
	</figure>

	<!-- full size image: https://images.unsplash.com/photo-1533236897111-3e94666b2edf -->

	<p>Velit vero esse quisquam accusantium? Dolore alias, quaerat quod excepturi officiis ipsa placeat officia necessitatibus illo, vero quasi esse aut. Doloremque nesciunt placeat animi saepe tempore aspernatur, officia vitae laudantium!</p>
	<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis quidem est minima quam! Laborum odit quidem earum perferendis eius laudantium perspiciatis similique deleniti delectus suscipit, cum corrupti facere reprehenderit esse.</p>
	<p>Aperiam est ab harum alias quae rem, cumque vero. Dolore possimus quas eius dolor voluptatibus cumque velit, ratione aspernatur voluptatem? Nulla voluptatem quaerat placeat error, ipsam alias dignissimos odit excepturi?</p>
	<p>Consectetur sed, itaque modi fugit asperiores similique maxime voluptatum incidunt labore vero cumque provident, deleniti nam? Molestiae impedit nostrum soluta quo iure, iste, nobis expedita minus ad officia dolor saepe.</p>
	<aside>
		<p>Labore vero cumque provident, deleniti nam, cumque vero.</p>
	</aside>
	<p>Consectetur sed, itaque modi fugit asperiores similique maxime voluptatum incidunt labore vero cumque provident, deleniti nam? Molestiae impedit nostrum soluta quo iure, iste, nobis expedita minus ad officia dolor saepe.</p>
	<p>Aperiam est ab harum alias quae rem, cumque vero. Dolore possimus quas eius dolor voluptatibus cumque velit, ratione aspernatur voluptatem? Nulla voluptatem quaerat placeat error, ipsam alias dignissimos odit excepturi?</p>
</div>
              
            
!

CSS

              
                :root {
	/* 	purp */
	--r: 230;
	--g: 67;
	--b: 238;
	/* 	french rose */
	--r2: 235;
	--g2: 72;
	--b2: 143;
	/* 	magenta-pink */
	--r3: 206;
	--g3: 44;
	--b3: 135;
	/* 	french violet */
	--r4: 95;
	--g4: 1;
	--b4: 195;
	/* 	maximum yellow red */
	--r5: 237;
	--g5: 183;
	--b5: 82;
	/* 	palatinate blue */
	--r6: 38;
	--g6: 58;
	--b6: 223;

	--col00: rgb(calc(var(--r) + 70), calc(var(--g) + 70), calc(var(--b) + 70));
	--col0: rgb(var(--r), var(--g), var(--b));
	--col1: rgb(calc(var(--r) - 10), calc(var(--g) - 10), calc(var(--b) - 10));
	--col2: rgb(calc(var(--r) - 20), calc(var(--g) - 20), calc(var(--b) - 20));
	--col3: rgb(calc(var(--r) - 30), calc(var(--g) - 30), calc(var(--b) - 30));
	--col4: rgb(calc(var(--r) - 40), calc(var(--g) - 40), calc(var(--b) - 40));
	--col5: rgb(calc(var(--r) - 50), calc(var(--g) - 50), calc(var(--b) - 50));
	--col6: rgb(calc(var(--r) - 60), calc(var(--g) - 60), calc(var(--b) - 60));
	--col7: rgb(calc(var(--r) - 65), calc(var(--g) - 65), calc(var(--b) - 65));
	--col8: rgb(calc(var(--r) - 70), calc(var(--g) - 70), calc(var(--b) - 70));
}

body {
	/*   height: 100%;
  overflow: hidden;*/
	margin: 0 auto;
	color: white;
	font-family: "Roboto", sans-serif;
}
h2 {
	margin-left: 30px;
	margin-right: 30px;
	text-align: center;
}
figcaption {
	/* 	border: 3px dotted pink; */
	text-align: center;
}
.pathway {
	position: fixed;
	height: 100%;
	width: 100%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	border: 30px solid rgba(0, 0, 0, 1);
	z-index: 10;
}
.pathwayDots {
	position: fixed;
	height: calc(100% - 20px);
	width: calc(100% - 20px);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	border: 10px dotted rgba(var(--r4), var(--g4), var(--b4), 1);
	z-index: 10;
}
.pathwayBar1 {
	position: fixed;
	top: 0%;
	left: -100vw;
	height: 30px;
	width: 100vw;
	background: #000;
	transition: 300ms;
	z-index: 10;
}
.pathwayBar2 {
	position: fixed;
	left: calc(100% - 30px);
	top: -100vh;
	width: 30px;
	height: 100vh;
	background: #000;
	transition: 300ms;
	z-index: 10;
}
.pathwayBar3 {
	position: fixed;
	top: calc(100% - 30px);
	right: -100vw;
	height: 30px;
	width: 100vw;
	background: #000;
	transition: 300ms;
	z-index: 10;
}
.pathwayBar4 {
	position: fixed;
	left: 0%;
	bottom: -100vh;
	width: 30px;
	height: 100vh;
	background: #000;
	transition: 300ms;
	z-index: 10;
}
.pacman {
	position: fixed;
	transform: translate(-50%, -50%) rotate(0deg);
	transition: 300ms;
	height: 30px;
	width: 30px;
	top: 15px;
	left: 15px;
	/* 	border:2px solid blue; */
	overflow: hidden;
	z-index: 12;
}
.pacman-body {
	position: absolute;
	transition: 500ms;
	height: 30px;
	width: 30px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: yellow;
	border-radius: 50%;
}
.pacman-mouth {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(0%, -50%);
	width: 0;
	height: 0;
	border-top: 15px solid transparent;
	border-bottom: 15px solid transparent;
	border-right: 20px solid black;
	animation: chomp 500ms linear infinite;
}
@keyframes chomp {
	0% {
		border-top: 15px solid transparent;
		border-bottom: 15px solid transparent;
	}
	50% {
		border-top: 0px solid transparent;
		border-bottom: 0px solid transparent;
	}
	100% {
		border-top: 15px solid transparent;
		border-bottom: 15px solid transparent;
	}
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
	display: none;
	-ms-overflow-style: none; /* IE and Edge */
	scrollbar-width: none; /* Firefox */
}
.bg {
	position: fixed;
	top: 0%;
	height: 100%;
	width: 100%;
	background-image: radial-gradient(rgb(17, 9, 55), rgb(0, 0, 0));
}
.grids {
	overflow: hidden;
	height: 100%;
	width: 100%;
	top: 0%;
	left: 0%;
	position: fixed;
	z-index: -1;
}
.h > i {
	height: 0.7vh;
	width: 130%;
	background-color: rgba(var(--r4), var(--g4), var(--b4), 0.99);
	border-radius: 50%;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -200%);
	box-shadow: 0px 0px 15px 7px rgb(var(--r4), var(--g4), var(--b4));
	z-index: 2;
}
.v > i {
	background-color: rgb(var(--r4), var(--g4), var(--b4));
	position: fixed;
	left: 50%;
	max-width: 3px;
	height: 58vh;
	bottom: -8%;
	transform-origin: top center;
}
.v > i:nth-child(1) {
	width: 0.45vw;
	height: 50vh;
	bottom: 0%;
}
.v > i:nth-child(2) {
	width: 0.4vw;
	transform: translate(5vw) rotate(-10deg);
}
.v > i:nth-child(3) {
	width: 0.4vw;
	transform: translate(-5vw) rotate(10deg);
}
.v > i:nth-child(4) {
	width: 0.35vw;
	transform: translate(-10vw) rotate(14deg);
}
.v > i:nth-child(5) {
	width: 0.35vw;
	transform: translate(10vw) rotate(-14deg);
}
.v > i:nth-child(6) {
	width: 0.3vw;
	transform: translate(-15vw) rotate(18deg);
}
.v > i:nth-child(7) {
	width: 0.3vw;
	transform: translate(15vw) rotate(-18deg);
}
.v > i:nth-child(8) {
	width: 0.25vw;
	transform: translate(-20vw) rotate(22deg);
}
.v > i:nth-child(9) {
	width: 0.25vw;
	transform: translate(20vw) rotate(-22deg);
}
.v > i:nth-child(10) {
	width: 0.25vw;
	transform: translate(-25vw) rotate(26deg);
}
.v > i:nth-child(11) {
	width: 0.25vw;
	transform: translate(25vw) rotate(-26deg);
}
.v > i:nth-child(12) {
	width: 0.25vw;
	transform: translate(-30vw) rotate(30deg);
}
.v > i:nth-child(13) {
	width: 0.25vw;
	transform: translate(30vw) rotate(-30deg);
}
.v > i:nth-child(14) {
	width: 0.25vw;
	transform: translate(-35vw) rotate(34deg);
}
.v > i:nth-child(15) {
	width: 0.25vw;
	transform: translate(35vw) rotate(-34deg);
}
.v > i:nth-child(16) {
	width: 0.25vw;
	transform: translate(-40vw) rotate(38deg);
}
.v > i:nth-child(17) {
	width: 0.25vw;
	transform: translate(40vw) rotate(-38deg);
}
.v > i:nth-child(18) {
	width: 0.25vw;
	transform: translate(-45vw) rotate(42deg);
}
.v > i:nth-child(19) {
	width: 0.25vw;
	transform: translate(45vw) rotate(-42deg);
}
.headline {
	width: 100%;
	text-shadow: 0 1px 0 var(--col1), 0 2px 0 var(--col2), 0 3px 0 var(--col3),
		0 4px 0 var(--col4), 0 5px 0 var(--col5), 0 6px 0 var(--col6),
		0 7px 0 var(--col7), 0 8px 0 var(--col8), 0 0 5px rgba(0, 0, 0, 0.5),
		0 1px 3px rgba(0, 0, 0, 0.2), 0 3px 5px rgba(0, 0, 0, 0.2),
		0 5px 10px rgba(0, 0, 0, 0.2), 0 10px 10px rgba(0, 0, 0, 0.2),
		0 20px 20px rgba(0, 0, 0, 0.3);
	font: 900 100px/1 "Source Sans Pro", Arial, sans-serif;
	text-transform: uppercase;
	color: rgb(var(--r2), var(--g2), var(--b2));
	text-align: center;
	letter-spacing: -3px;
}
.subhead {
	color: rgb(var(--r), var(--g), var(--b));
	text-align: center;
	font: "Source Sans Pro", Arial, sans-serif;
}
.article-meta {
	position: relative;
	padding: 0px;
	height: 80px;
	width: 260px;
	margin-right: 30px;
	border-radius: 999px 0px 0px 999px;
	border: 2px dotted rgb(var(--r4), var(--g4), var(--b4));
	float: right;
}
.article-meta > svg {
	position: absolute;
	left: 0px;
	top: 50%;
	transform: translate(0%, -50%);
	border: 2px dotted rgb(var(--r5), var(--g5), var(--b5));
	border-radius: 50%;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}
.article-meta > .byline {
	position: absolute;
	left: 85px;
	top: calc(50% - 2.5em);
}
.article-meta > .dateline {
	position: absolute;
	left: 90px;
	top: calc(50% - 1em);
}
.article-meta > .article-tags {
	position: absolute;
	left: 85px;
	top: calc(50% + 0.5em);
}
.magazine-content {
	padding: 30px;
}
img {
	max-width: 400px;
	text-align: center;
	position: relative;
	left: 50%;
	transform: translate(-50%);
	-moz-box-shadow: inset 0 0 10px #000000;
	-webkit-box-shadow: inset 0 0 10px #000000;
	box-shadow: inset 0 0 10px #000000;
	border: 5px dotted var(--col3);
}
p {
	margin-top: 3px;
	padding: 5px;
}

              
            
!

JS

              
                const pacman = document.querySelector(".pacman");

let scrollPercent = 0;
let scrollDirection = "down";

$(window).bind("mousewheel", function (event) {
	if (event.originalEvent.wheelDelta >= 0) {
		// scroll up
		scrollDirection = "up";
	} else {
		// scroll down
		scrollDirection = "down";
	}
});

function movePacman(perc) {
	let rotation = perc * 0.01 * 360;
	// top line UP
	if (perc <= 25 && scrollDirection == "up") {
		let scrollVal = perc * 4;
		let pathBar = "-" + (100 - scrollVal) + "vw";
		document.querySelector(".pathwayBar1").style.left = pathBar;
		document.querySelector(".pathwayBar2").style.top = "calc(-100vh + 10px)";
		pacman.style.transform = "translate(-50%,-50%) rotate(-180deg)";
		pacman.style.top = "15px";
		pacman.style.left = "calc(" + scrollVal + "vw)";
		// top line DOWN
	} else if (perc <= 25 && scrollDirection == "down") {
		let scrollVal = perc * 4;
		let pathBar = "-" + (100 - scrollVal) + "vw";
		document.querySelector(".pathwayBar1").style.left = pathBar;
		document.querySelector(".pathwayBar2").style.top = "calc(-100vh + 10px)";
		pacman.style.transform = "translate(-50%,-50%) rotate(0deg)";
		pacman.style.top = "15px";
		pacman.style.left = "calc(" + scrollVal + "vw)";
		// right line UP
	} else if (perc > 25 && perc <= 50 && scrollDirection == "up") {
		let scrollVal = (perc - 25) * 4;
		let pathBar = "calc(-" + (100 - scrollVal) + "vh + 10px)";
		document.querySelector(".pathwayBar1").style.left = "calc(0vw + 10px)";
		document.querySelector(".pathwayBar2").style.top = pathBar;
		document.querySelector(".pathwayBar3").style.right = "calc(-100vw + 10px)";
		pacman.style.transform = "translate(-50%,-50%) rotate(-90deg)";
		pacman.style.left = "calc(100vw - 15px)";
		pacman.style.top = "calc(" + scrollVal + "vh)";
		// right line DOWN
	} else if (perc > 25 && perc <= 50 && scrollDirection == "down") {
		let scrollVal = (perc - 25) * 4;
		let pathBar = "calc(-" + (100 - scrollVal) + "vh + 10px)";
		document.querySelector(".pathwayBar1").style.left = "calc(0vw + 10px)";
		document.querySelector(".pathwayBar2").style.top = pathBar;
		document.querySelector(".pathwayBar3").style.right = "calc(-100vw + 10px)";
		pacman.style.transform = "translate(-50%,-50%) rotate(90deg)";
		pacman.style.left = "calc(100vw - 15px)";
		pacman.style.top = "calc(" + scrollVal + "vh)";
		// bottom line UP
	} else if (perc > 50 && perc <= 75 && scrollDirection == "up") {
		let scrollVal = (perc - 25) * 4;
		let pathBar = "-" + (200 - scrollVal) + "vw";
		document.querySelector(".pathwayBar2").style.top = "0vh";
		document.querySelector(".pathwayBar3").style.right = pathBar;
		document.querySelector(".pathwayBar4").style.bottom = "calc(-100vh - 30px)";
		pacman.style.transform = "translate(-50%,-50%) rotate(0deg)";
		pacman.style.top = "calc(100vh - 15px)";
		pacman.style.left = "calc(" + (200 - scrollVal) + "vw)";
		// bottom line DOWN
	} else if (perc > 50 && perc <= 75 && scrollDirection == "down") {
		let scrollVal = (perc - 25) * 4;
		let pathBar = "-" + (200 - scrollVal) + "vw";
		document.querySelector(".pathwayBar2").style.top = "0vh";
		document.querySelector(".pathwayBar3").style.right = pathBar;
		document.querySelector(".pathwayBar4").style.bottom = "calc(-100vh - 30px)";
		pacman.style.transform = "translate(-50%,-50%) rotate(180deg)";
		pacman.style.top = "calc(100vh - 15px)";
		pacman.style.left = "calc(" + (200 - scrollVal) + "vw)";
		// left line UP
	} else if (perc > 75 && perc <= 100 && scrollDirection == "up") {
		let scrollVal = (perc - 25) * 4;
		let pathBar = "calc(-" + (300 - scrollVal) + "vh + 10px)";
		document.querySelector(".pathwayBar3").style.right = "0vh";
		document.querySelector(".pathwayBar4").style.bottom = pathBar;
		pacman.style.transform = "translate(-50%,-50%) rotate(90deg)";
		pacman.style.top = "calc(" + -(-(100 - scrollVal) - 200) + "vh)";
		pacman.style.left = "15px";
		// left line DOWN
	} else if (perc > 75 && perc <= 100 && scrollDirection == "down") {
		let scrollVal = (perc - 25) * 4;
		let pathBar = "calc(-" + (300 - scrollVal) + "vh + 10px)";
		document.querySelector(".pathwayBar3").style.right = "0vh";
		document.querySelector(".pathwayBar4").style.bottom = pathBar;
		pacman.style.transform = "translate(-50%,-50%) rotate(-90deg)";
		pacman.style.top = "calc(" + -(-(100 - scrollVal) - 200) + "vh)";
		pacman.style.left = "15px";
	}
}

$(document).ready(function () {
	$(window).scroll(function (e) {
		var scrollTop = $(window).scrollTop();
		var docHeight = $(document).height();
		var winHeight = $(window).height();
		var scrollPercent = scrollTop / (docHeight - winHeight);
		var scrollPercentRounded = (scrollPercent * 100).toFixed(2);

		scrollPercent = scrollPercentRounded;
		movePacman(scrollPercent);
	});
});

//drawPacman plugin: https://codepen.io/leimapapa/pen/poemQMd
const drawPacman = () => {
	//remove him if he's already there
	const pacmanGuy = document.querySelectorAll(".pcmanGuy");
	for (let i = 0; i < pacmanGuy.length; i++) {
		pacmanGuy[i].parentNode.removeChild(pacmanGuy[i]);
	}
	const pacman = document.querySelectorAll(".pcman");
	const bodyColor = window
		.getComputedStyle(document.body, null)
		.getPropertyValue("background-color");
	for (let j = 0; j < pacman.length; j++) {
		const style = getComputedStyle(pacman[j]);
		const borderWidth = style.borderWidth;
		const bgColor = style.backgroundColor;
		const pacmanWidth = parseInt(borderWidth, 10) * 2;
		pacman[
			j
		].innerHTML += `<div class="pcmanGuy" style="height:${pacmanWidth}px; width:${pacmanWidth}px; position: absolute; overflow:hidden; top:-${
			pacmanWidth / 1.5 + 2
		}px; left:-${pacmanWidth / 1.5 + 2}px">
	<div class="pcman-body" style="background:yellow; height:${
		pacmanWidth - 2
	}px; width:${
			pacmanWidth - 2
		}px; border-radius:50%; border:1px solid ${bodyColor}; position: absolute;top: 50%;	left: 50%; transform: translate(-50%, -50%);"></div>
	<div class="pcman-mouth" style="position: absolute;top: 50%;	left: 50%; transform: translate(-1px, -50%);width: 0;	height: 0;	border-top: ${
		pacmanWidth / 3
	}px solid transparent;
	border-bottom: ${
		pacmanWidth / 3
	}px solid transparent;	border-right: ${pacmanWidth}px solid ${bodyColor};"></div>
</div>`;
	}
};

window.onload = function () {
	drawPacman();
};
window.onresize = function () {
	drawPacman();
};

              
            
!
999px

Console