css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <head>
	<link href="https://fonts.googleapis.com/css?family=Raleway:100,400" rel="stylesheet">
</head>

<div class="information">
	<div class="demonstrationBy">Prepared by <a href="https://quintonchester.com">Quinton Chester</a>
	</div>
	<div class="writeup">
		<p>This is based on <a href="http://kenwheeler.github.io/slick/" target=_blank>Slick</a> and <a href="" target=_blank>Instafeed.</a> The CSS provided is for the purpose of demonstrating how to accomplish the hover effects on the images themselves. In the JS window I have provided an example of the JS settings that you would use to accomplish this setup specifically.</p>
	</div>
</div>

<div id="instafeed"></div>
            
          
!
            
              body {
	width: 100%;
	min-height: 100vh;
	margin: 0;
	background-color: #343434;
	font-family: 'Raleway', sans-serif;
}

.information {
	.demonstrationBy {
		width: auto;
		height: auto;
		padding: 2rem;
		color: white;
		font-size: 3rem;
		text-align: center;
		font-weight: 100;
		a {
			color: white;
			text-decoration: none !important;
			border-bottom: solid 2px white;
			transition: all ease-in-out .3s;
			&:hover {
				color: #ff18de;
				border-bottom: solid 2px #ff18de;
			}
		}
	}
	.writeup {
		width: 50%;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 4rem;
		text-align: center;
		p {
			font-size: 1rem;
			line-height: 1.45rem;
			color: white;
			a {
				color: white;
				text-decoration: none !important;
				border-bottom: solid 2px white;
				transition: all ease-in-out .3s;
				&:hover {
					color: #ff18de;
					border-bottom: solid 2px #ff18de;
				}
			}
		}
	}
}

#instafeed {
	position: relative;
}

.instaImage {
	width: auto;
	background-size: cover;
	min-height: 8rem !important;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	z-index: 99;
	.instaOverlay {
		position: absolute;
		top: 0;
		bottom: 0;
		right: 0;
		left: 0;
		height: 100%;
		width: 100%;
		background-color: rgba(255,24,222,.7);
		color: white;
		opacity: 0;
		z-index: 9;
		transition: all ease-in-out .3s;
		.instaLink {
	    	position: absolute;
	    	width: fit-content;
    		padding: .15rem 1rem;
			top: 50%;
			-ms-transform: translateY(-50%);
			transform: translateY(-50%);
			left: 0;
			right: 0;
			border: solid 1px white;
			text-transform: uppercase;
			margin-left: auto;
			margin-right: auto;
			text-align: center;
			a {
				font-size: 1rem;
				color: white !important;
				text-decoration: none !important;
				margin: 0;
				padding: 0;
				:hover {
					text-decoration: none !important;
				}
			}
		}
		&:hover {
			opacity: 1;
			z-index: 999;
		}
	}
}

// SLICK CSS STUFF

.slick-slider {
    position: relative;

    display: block;
    box-sizing: border-box;

    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;

    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
        touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.slick-list
{
    position: relative;

    display: block;
    overflow: hidden;

    margin: 0;
    padding: 0;
}
.slick-list:focus
{
    outline: none;
}
.slick-list.dragging
{
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list
{
    -ms-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
}

.slick-track
{
    position: relative;
    top: 0;
    left: 0;

    display: block;
}
.slick-track:before,
.slick-track:after
{
    display: table;

    content: '';
}
.slick-track:after
{
    clear: both;
}
.slick-loading .slick-track
{
    visibility: hidden;
}

.slick-slide
{
    display: none;
    float: left;

    height: 100%;
    min-height: 1px;
}
[dir='rtl'] .slick-slide
{
    float: right;
}
.slick-slide img
{
    display: block;
}
.slick-slide.slick-loading img
{
    display: none;
}
.slick-slide.dragging img
{
    pointer-events: none;
}
.slick-initialized .slick-slide
{
    display: block;
}
.slick-loading .slick-slide
{
    visibility: hidden;
}
.slick-vertical .slick-slide
{
    display: block;

    height: auto;

    border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
    display: none;
}
            
          
!
            
              $(window).on('load', function() {
    iFeed();
});

  // var feed = new Instafeed({
  //     get: 'user',
  //     userId: 'YOUR USER ID HERE',
  //     sortBy: 'most-recent',
  //     resolution: 'low_resolution',
  //     clientId: 'YOUR CLIENT ID HERE',
  //     accessToken: 'YOUR ACCESS TOKEN',
  //     limit: 20,
  //     template: '<div class="instaImage" style="background-image: url({{image}});"><div class="instaOverlay"><div class="instaLink"><a target=_blank href="{{link}}">Visit</a></div></div></div>',
  //     after: function() { //we use this to set up the slick settings AFTER we have retrieved the instagram pictures
  //       $('#instafeed').slick({
  //         infinite: true,
  //         slidesToShow: 11,
  //         slidesToScroll: 1,
  //         dots: false,
  //         speed: 300,
  //         autoplay: true,
  //         autoplaySpeed: 6000,
  //         arrows: false,
  //         focusOnSelect: true
  //       });
  //     }
  // });
  // feed.run();
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console