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

              
                 <header>
		<nav id="magic-nav" class="d-flex justify-content-between">
			<div>
				<a href="https://www.minimamente.com" class="minimamente-logo d-inline" title="minimamente.com">
					<svg viewBox="0 0 851 586" fill="none" xmlns="http://www.w3.org/2000/svg">
						<path class="path"
							d="M274.765 118.464L101.097 419.343C88.0179 442.003 95.7797 470.978 118.433 484.06C125.934 488.392 134.127 491.271 142.207 491.248H512.338L567.029 586H142.207C118.028 586.038 93.5158 579.081 71.0695 566.118C3.10821 526.87 -20.1771 439.946 19.0604 371.967L192.728 71.088C231.966 3.10895 318.868 -20.1823 386.829 19.0653C409.888 32.3821 427.804 51.1875 439.88 72.8794L529.801 228.475L530.012 228.353L667.866 467.184C680.945 489.844 709.913 497.608 732.567 484.525C755.22 471.442 762.982 442.468 749.903 419.808L576.235 118.929C563.699 97.2095 536.565 89.1754 514.386 100.067L466.985 17.9463C534.514 -19.0684 619.574 4.50878 658.272 71.5528L831.94 372.432C871.177 440.411 847.892 527.335 779.93 566.583C711.969 605.831 625.067 582.539 585.829 514.56L425.366 236.557L425.302 236.667L354.993 114.856C352.187 110.659 349.345 107.912 345.872 105.132C344.325 103.895 342.371 102.781 340.536 101.736L340.535 101.735C340.172 101.529 339.814 101.325 339.465 101.123C316.811 88.0407 287.844 95.8044 274.765 118.464Z"
							fill="#fff" />
					</svg>
				</a>
			</div>
			<div class="header-links">
				<a href="https://github.com/miniMAC/magic/archive/master.zip" class="btn btn-primary">Download <i class="fas fa-download"></i></a>
				
			</div>
		</nav>

		<div class="container-magic-center d-flex justify-content-center">
			<div class="container-magic">
				<div class="magic-base"></div>
				<div id="magic" class="magic-move">
					<i class="fas fa-rocket"></i>
				</div>
			</div>
		</div>
	</header>

	<div id="content" class="container-magic-bottom container text-center">

		<h3>Magic Effects</h3>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="magic"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="magic">magic</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="twisterInDown"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="twisterInDown">twisterInDown</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="twisterInUp"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="twisterInUp">twisterInUp</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="swap"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="swap">swap</div>
		</div>
		
		<h3>Bling</h3>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="puffIn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="puffIn">puffIn</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="puffOut"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="puffOut">puffOut</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="vanishIn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="vanishIn">vanishIn</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="vanishOut"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="vanishOut">vanishOut</div>
		</div>
		
		<h3>Static Effects</h3>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="openDownLeft"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="openDownLeft">openDownLeft</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="openDownRight"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="openDownRight">openDownRight</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="openUpLeft"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="openUpLeft">openUpLeft</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="openUpRight"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="openUpRight">openUpRight</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="openDownLeftReturn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="openDownLeftReturn">openDownLeftReturn</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="openDownRightReturn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="openDownRightReturn">openDownRightReturn</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="openUpLeftReturn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="openUpLeftReturn">openUpLeftReturn</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="openUpRightReturn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="openUpRightReturn">openUpRightReturn</div>
		</div>
		
		<h3>Static Effects Out</h3>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="openDownLeftOut"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="openDownLeftOut">openDownLeftOut</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="openDownRightOut"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="openDownRightOut">openDownRightOut</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="openUpLeftOut"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="openUpLeftOut">openUpLeftOut</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="openUpRightOut"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="openUpRightOut">openUpRightOut</div>
		</div>
		
		<h3>Perspective</h3>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="perspectiveDown"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="perspectiveDown">perspectiveDown</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="perspectiveUp"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="perspectiveUp">perspectiveUp</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="perspectiveLeft"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="perspectiveLeft">perspectiveLeft</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="perspectiveRight"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="perspectiveRight">perspectiveRight</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="perspectiveDownReturn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="perspectiveDownReturn">perspectiveDownReturn</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="perspectiveUpReturn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="perspectiveUpReturn">perspectiveUpReturn</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="perspectiveLeftReturn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="perspectiveLeftReturn">perspectiveLeftReturn</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="perspectiveRightReturn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="perspectiveRightReturn">perspectiveRightReturn</div>
		</div>
		
		<h3>Rotate</h3>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="rotateDown"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="rotateDown">rotateDown</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="rotateUp"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="rotateUp">rotateUp</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="rotateLeft"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="rotateLeft">rotateLeft</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="rotateRight"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="rotateRight">rotateRight</div>
		</div>
		
		<h3>Slide</h3>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="slideDown"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="slideDown">slideDown</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="slideUp"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="slideUp">slideUp</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="slideLeft"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="slideLeft">slideLeft</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="slideRight"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="slideRight">slideRight</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="slideDownReturn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="slideDownReturn">slideDownReturn</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="slideUpReturn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="slideUpReturn">slideUpReturn</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="slideLeftReturn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="slideLeftReturn">slideLeftReturn</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="slideRightReturn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="slideRightReturn">slideRightReturn</div>
		</div>
		
		<h3>Math</h3>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="swashOut"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="swashOut">swashOut</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="swashIn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="swashIn">swashIn</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="foolishIn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="foolishIn">foolishIn</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="holeOut"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="holeOut">holeOut</div>
		</div>
		
		<h3>Tin</h3>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="tinRightOut"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="tinRightOut">tinRightOut</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="tinLeftOut"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="tinLeftOut">tinLeftOut</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="tinUpOut"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="tinUpOut">tinUpOut</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="tinDownOut"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="tinDownOut">tinDownOut</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="tinRightIn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="tinRightIn">tinRightIn</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="tinLeftIn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="tinLeftIn">tinLeftIn</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="tinUpIn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="tinUpIn">tinUpIn</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="tinDownIn"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="tinDownIn">tinDownIn</div>
		</div>
		
		<h3>Bomb</h3>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="bombRightOut"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="bombRightOut">bombRightOut</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="bombLeftOut"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="bombLeftOut">bombLeftOut</div>
		</div>
		
		<h3>Boing</h3>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="boingInUp"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="boingInUp">boingInUp</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="boingOutDown"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="boingOutDown">boingOutDown</div>
		</div>
		
		<h3>On the Space</h3>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="spaceOutUp"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="spaceOutUp">spaceOutUp</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="spaceOutRight"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="spaceOutRight">spaceOutRight</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="spaceOutDown"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="spaceOutDown">spaceOutDown</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="spaceOutLeft"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="spaceOutLeft">spaceOutLeft</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="spaceInUp"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="spaceInUp">spaceInUp</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="spaceInRight"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="spaceInRight">spaceInRight</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="spaceInDown"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="spaceInDown">spaceInDown</div>
		</div>
		<div class="cont-btn-magic">
			<span class="magic-copy" data-clipboard-text="spaceInLeft"><i class="far fa-copy"></i></span>
			<div class="btn btn-outline-primary" data-test="spaceInLeft">spaceInLeft</div>
		</div>

	</div>
              
            
!

CSS

              
                #magic-nav{position:fixed;z-index:99;top:0;left:0;right:0;width:100%;padding:.4rem 1rem;background:rgba(0,0,0,.2)}.minimamente-logo{display:block;margin-top:.4rem;width:30px;height:30px;text-align:center}.minimamente-logo svg{width:30px;height:30px}footer{position:relative;top:100px;padding-top:15vh;padding-bottom:15vh}.fontCol{color:#fc297f}.btn-outline-primary{text-transform:uppercase;padding:.4rem .8rem;font-size:1rem;letter-spacing:.1rem;font-weight:500;margin-left:.2rem;margin-right:.2rem;margin-bottom:1rem;border:2px solid rgba(255,255,255,.1);-webkit-border-radius:3px;border-radius:3px;background-color:#17171d;color:#fff;cursor:pointer}.btn-outline-primary:hover{background:0 0;border-color:#fff;color:#fff}.btn-outline-primary:active,.btn-outline-primary:focus,.btn-outline-primary:not(:disabled):not(.disabled):active,.btn-outline-primary:not(:disabled):not(.disabled):active:focus{-webkit-box-shadow:none;box-shadow:none;background-color:#fc297f;border-color:#fc297f;color:#fff}.btn-link{color:#fff}.btn-link:hover{color:#fc297f}.btn-primary{border-width:2px;background-color:#fc297f;border-color:#fc297f;color:#fff}.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.btn-primary:not(:disabled):not(.disabled):active,.btn-primary:not(:disabled):not(.disabled):active:focus{-webkit-box-shadow:none;box-shadow:none;background-color:transparent;border-color:#fc297f;color:#fc297f}.btn-outline-secondary{border-width:2px;background-color:transparent;border-color:#fff;color:#fff}.btn-outline-secondary:hover{background-color:transparent;border-color:#fc297f;color:#fc297f}body,html{font-display:auto;font-family:'Open Sans',sans-serif;background-color:#17171d;color:#fff}.container-magic-center{position:fixed;top:0;left:0;right:0;z-index:10;height:100px;padding-top:15vh;padding-bottom:10vh;background-color:#17171d}.container-magic-center:before{content:'';position:absolute;bottom:-50px;width:100%;height:50px;background:0 0;background:-webkit-linear-gradient(top,#17171d 0,rgba(0,0,0,0) 100%);background:linear-gradient(to bottom,#17171d 0,rgba(0,0,0,0) 100%)}.container-magic{position:relative}#magic,.magic-base{position:absolute;top:-50px;left:-50px;right:0;width:100px;height:100px;text-align:center;-webkit-border-radius:9px;border-radius:9px;background-color:#393948}#magic{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both;line-height:100px;font-size:1.6rem;background-color:#fc297f;-webkit-box-shadow:0 0 20px -6px #fc297f;box-shadow:0 0 20px -6px #fc297f;color:#fff}.container-magic-bottom{position:relative;top:100px;margin-top:25vh}.container-magic-bottom h3{font-size:2.57rem;font-weight:800;letter-spacing:.2rem;text-transform:uppercase;margin-top:5rem;margin-bottom:1.6rem;color:#fff}.cont-btn-magic{position:relative;display:inline-block}.magic-copy{display:block;position:absolute;z-index:-1;top:0;left:20px;background-color:#fc297f;padding:.4rem .8rem;background-color:#fc297f;border:2px solid #fc297f;-webkit-border-radius:3px;border-radius:3px;opacity:0;-webkit-transition:.3s;transition:.3s;cursor:pointer}.magic-copy:hover{background-color:#fff;color:#fc297f;border-color:#fff}.magic-copy.copy-show{left:2px;opacity:1;z-index:1;-webkit-transition:.3s ease-in .3s;transition:.3s ease-in .3s}.copy-ok{position:fixed;z-index:999;top:-90px;left:0;right:0;font-weight:700;text-align:center;max-width:120px;margin:auto;padding:.8rem 1rem;-webkit-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;background-color:#61cc66;color:#fff;-webkit-box-shadow:0 15px 60px -15px rgba(0,0,0,.5);box-shadow:0 15px 60px -15px rgba(0,0,0,.5);-webkit-transition:.3s;transition:.3s}.copy-ok.to-show{top:0;-webkit-transition:.3s;transition:.3s}@media (max-width:768px){.container-magic-center{padding-top:25vh;padding-bottom:15vh}.container-magic-bottom{margin-top:30vh}.copy-ok{width:100%;max-width:100%;-webkit-border-radius:0;border-radius:0}}
              
            
!

JS

              
                //source https://www.minimamente.com/project/magic/
              
            
!
999px

Console