cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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 lang="en">

<head>
  <meta charset="UTF-8" />
  <link href='https://s3-us-west-2.amazonaws.com/luengo-font/fonts.css' rel='stylesheet' type='text/css'>

</head>

<body>
  <div class='card noselect'>
    <div id="instafeed"></div>
    <div class="controller">
      <div class="button button-l" id="button-l"><p><</p></div>
      <div class="button button-r" id="button-r"><p>></p></div>
<!--       <img class="button button-r" id="button-r" src="https://s3-us-west-1.amazonaws.com/holos-res/forward-button.svg"> -->
    </div>
  </div>

</body>

</html>
            
          
!
            
              * {
  box-sizing: border-box;
  transition: background 1s ease-in;
}

.card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  height: 1400px;
  width: 800px;
  border-style: solid;
  border-width: 10px;
  border-color: white;
  background: #172540;
  border-radius: 50px;
  z-index: 1;
  overflow: hidden;
}

iframe {
  display: none;
}

body {
  background-color: transparent;
  font-family: 'Luengo-Bold', sans-serif;
}

#instafeed {
  z-index: 0;
  position: relative;
}

#instafeed a {
  color: black;
  display: inline-block;
  overflow: hidden;
  position: relative;
  width: 100%;
}

#instafeed img {
  display: block;
  height: 800px;
  width: 100%;
}

#instafeed .info {
  background-color: #BCBEC0;
  height: 200px;
  width: 100%;
  /* T R B L */
  padding: 10px 0px 0px 0px;
  border-top: solid 10px white;
  border-bottom: solid 10px white;
}

#instafeed .info p {
  position: static;
  font-size: 80px;
  margin-top: 30px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  color: white;
}


/* #instafeed .info:before {
  content:'';
  width:100%;
  height:100%;    
  position:absolute;
  left:0;
  top:0;
  background:linear-gradient(to right, transparent 20px, #edf0f2);
} */

#instafeed .likes {
  position: absolute;
  right: 380px;
  bottom: 60px;
}

#instafeed .likes p {
  font-size: 20px;
  color: #ffffff;
  position: absolute;
  right: -40px;
  bottom: -22px;
}

#more,
#nomore {
  background-color: #f6f6f6;
  cursor: pointer;
  display: none;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 40px;
  padding: .8rem .6rem 1rem;
  border-style: solid;
  border-width: 5px;
  border-color: white;
  border-radius: 20px;
  width: 80%;
}

#more p,
#nomore p {
  color: #444;
  text-align: center;
  font-size: 1rem;
}

#more span,
#nomore span {
  position: relative;
  top: 1px;
}

#nomore {
  cursor: auto;
  opacity: .4;
}

.button {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 15px solid white;
  border-radius: 100%;
  z-index: 1;
  background-color: #575757;
}

.button:hover {
  transition: all 0.125s ease-in-out 0s;
  -webkit-filter: drop-shadow(0px 0px 25px #ffffff);
}

.button:active {
  -webkit-filter: drop-shadow(0px 0px 35px #ffffff);
}

.button p {
  color: white;
  font-family: 'Luengo-Bold', sans-serif;
  font-size: 200px;
  text-align: center;
  line-height: 0;
  margin-top: 70px;
  margin-right: 0px;
}

.button-l {
  top: 0px;
  left: 125px;
}

.button-l p {
  margin-left: -10px;
}

.button-r {
  right: 125px;
}

.button-r p {
  margin-right: -10px;
}

.controller {
  position: relative;
  text-align: center;
  margin-right: auto;
  margin-left: auto;
  top: 85px;
}

.marquee {
  content: "";
  white-space: nowrap;
  overflow: hidden;
}

.marquee p {
  display: inline-block;
  padding-left: 100%;
  color: white;
  animation: marquee 12s linear infinite;
/*   filter: drop-shadow(1px 16px 22px rgba(0, 0, 0, 0.5));
  -webkit-filter: drop-shadow(1px 16px 22px rgba(0, 0, 0, 0.5)); */
}

@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Chrome/Safari/Opera */
  -moz-user-select: none;      /* Firefox */
}
            
          
!
            
              // Instafeed Website: http://instafeedjs.com/
var back = $("#button-l");
var forward = $("#button-r");
var infoToggle = $("#instafeed .info");

//Example for more text: 201779470
//Instacookie: 14202992
// template: '<a class="image"><img src="{{image}}"><div class="info"><p>{{caption}}</p>'

feed = new Instafeed({
  //Old one
  // accessToken: '141970.467ede5.edbc9c37472d41b790e1db8948793f11',
  accessToken: '125128.1677ed0.2c723702d9794b10bab3d045a024cd77',
  // clientId: 'ca62aafc0e064b929660b099a1f0c3c6',
  // tagName: 'vr',
  get: 'user',
  userId: 125128,
  resolution: 'standard_resolution',
  links: 'false',
  template: '<a class="image"><img src="{{image}}"><div class="info"><div class="marquee"><p>{{caption}}</p></div></div>',
  mock: true,
  custom: {
    images: [],
    currentImage: 0,
    showImage: function() {
      var result, image;
      image = this.options.custom.images[this.options.custom.currentImage];
      result = this._makeTemplate(this.options.template, {
        model: image,
        id: image.id,
        link: image.link,
        image: image.images[this.options.resolution].url,
        caption: this._getObjectProperty(image, 'caption.text'),
        likes: image.likes.count,
        comments: image.comments.count,
        location: this._getObjectProperty(image, 'location.name')
      });
      $("#instafeed").html(result);
    }
  },
  success: function(data) {
    this.options.custom.images = data.data;
    this.options.custom.showImage.call(this);
  }
});
feed.run();

$(forward).click(function() {
  var length, current;
  current = feed.options.custom.currentImage;
  length = feed.options.custom.images.length;
  if (current < length - 1) {
    feed.options.custom.currentImage++;
    feed.options.custom.showImage.call(feed);
  }
});

$(back).click(function() {
  var length, current;
  current = feed.options.custom.currentImage;
  length = feed.options.custom.images.length;
  if (current > 0) {
    feed.options.custom.currentImage--
      feed.options.custom.showImage.call(feed);
  }
});
            
          
!
999px
Loading ..................

Console