Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <body>
	<div class="conatiner">
		
		<ul>
			<h2>STATIC</h2>
			<li class="box">
				<img src='http://jasonnallie.com/wp-content/uploads/2013/12/mcmp_extensions-220x170.png' alt="" />
			</li>
			<li class="box">
				<img src='http://jasonnallie.com/wp-content/uploads/2013/01/vrdur-220x170.jpg' alt="" />
			</li>
		</ul>
		<ul>
			<h2>GLITCH</h2>
			<li class="box glitch">
				<img src='http://jasonnallie.com/wp-content/uploads/2013/12/mcmp_extensions-220x170.png' alt="" />
			</li>
			<li class="box glitch">
				<img src='http://jasonnallie.com/wp-content/uploads/2013/01/vrdur-220x170.jpg' alt="" />
			</li>
		</ul>
		<ul>
			<h2>VHS</h2>
			<li class="box vhs-3">
				<img src='http://jasonnallie.com/wp-content/uploads/2013/12/mcmp_extensions-220x170.png' alt="" />
			</li>
			<li class="box vhs-3">
				<img src='http://jasonnallie.com/wp-content/uploads/2013/01/vrdur-220x170.jpg' alt="" />
			</li>
		</ul>
		<ul>
			<li class="box vhs-2">
				<img src='http://jasonnallie.com/wp-content/uploads/2013/12/mcmp_extensions-220x170.png' alt="" />
			</li>
			<li class="box vhs-2">
				<img src='http://jasonnallie.com/wp-content/uploads/2013/01/vrdur-220x170.jpg' alt="" />
			</li>
		</ul>
		<ul>
			<li class="box vhs">
				<img src='http://jasonnallie.com/wp-content/uploads/2013/12/mcmp_extensions-220x170.png' alt="" />
			</li>
			<li class="box vhs">
				<img src='http://jasonnallie.com/wp-content/uploads/2013/01/vrdur-220x170.jpg' alt="" />
			</li>
		</ul>
	</div>
</body>

              
            
!

CSS

              
                @import 'nib';

img
	height auto
	max-width 100%
	width 100%
	vertical-align top

body, html
	background black

ul
	float left
	width 100%
	padding 0

h2
	color white
	font size 12px
	margin-bottom 1px
	font-family arial

.box
	position relative
	/* box-sizing border-box */
	border 4px solid white
	width 22%
	float left
	margin-right 2%
	overflow hidden
	text-align center
	
	&:before
		content ' '
		position absolute
		top 0
		left 0
		width 0
		height 0
		visibility hidden
		background-image url('http://jasonnallie.com/images/flicker.gif')

	&:hover:before
		height 100%
		width 100%
		visibility visible
		opacity 0.3
		cursor pointer

.glitch
	&:before
		background-image url('http://jasonnallie.com/images/flicker.gif')
		mix-blend-mode multiply
		// mix-blend-mode luminosity
		mix-blend-mode screen

	&:hover:before
		opacity 1

.vhs
	&:before
		background-image url('http://jasonnallie.com/images/flicker.gif')
		mix-blend-mode difference

.vhs
.vhs-2
.vhs-3
	&:hover:before
		opacity 1

.vhs-2:before
		background-image url('http://jasonnallie.com/images/flicker.gif')
		mix-blend-mode color-dodge

.vhs-3:before
		background-image url('http://jasonnallie.com/images/flicker.gif')
		mix-blend-mode color-dodge
              
            
!

JS

              
                
              
            
!
999px

Console