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

              
                <h1></h1>
<div class="feedback-messages-container">
  <ul class="feedback-messages">
    <li>
      <div class="avatar"><img src="https://i.pravatar.cc/300
  " alt=""></div>
      <div class="bubble">
        <div class="text">תודה על הטיפ, עוקבת ומחכה לבאים בתור... מעניין ממש ועשוי בחן רב!</div>
        <div class="from">@lilachys</div>
      </div>
    </li>
    <li>
      <div class="avatar"><img src="https://i.pravatar.cc/300
  " alt=""></div>
      <div class="bubble">
        <div class="text">תודה על הטיפ, ממש עזרת לי!</div>
        <div class="from">@miss_rachel3</div>
      </div>
    </li>
    <li>
      <div class="avatar"><img src="https://i.pravatar.cc/300
  " alt=""></div>
      <div class="bubble">
        <div class="text">כך פעם שמותחים פונט, מעצב, במקום כלשהו מת.</div>
        <div class="from">@ellaperrystudioyaar</div>
      </div>
    </li>
    <li>
      <div class="avatar"><img src="https://i.pravatar.cc/300
  " alt=""></div>
      <div class="bubble">
        <div class="text">אני אשלח את זה לכל המורות שלי שדורשות רווח כפול בכל העבודות</div>
        <div class="from">@__.alma.__0</div>
      </div>
    </li>
    <li>
      <div class="avatar"><img src="https://i.pravatar.cc/300
  " alt=""></div>
      <div class="bubble">
        <div class="text">תודה על הטיפ, עוקבת ומחכה לבאים בתור... מעניין ממש ועשוי בחן רב!</div>
        <div class="from">@lilachys</div>
      </div>
    </li>
    <li>
      <div class="avatar"><img src="https://i.pravatar.cc/300
  " alt=""></div>
      <div class="bubble">
        <div class="text">עכשיו עובדת על קורות חיים, וזה ממש מתאים כדי לחשוב על ארגון טוב של הדף! תודה</div>
        <div class="from">@tamardahan</div>
      </div>
    </li>
    <li>
      <div class="avatar"><img src="https://i.pravatar.cc/300
  " alt=""></div>
      <div class="bubble">
        <div class="text">אחלה יסודות של עיצוב גרפי..</div>
        <div class="from">@ayeletbarnoy</div>
      </div>
    </li>
    <li>
      <div class="avatar"><img src="https://i.pravatar.cc/300
  " alt=""></div>
      <div class="bubble">
        <div class="text">אלרון, אתה פשוט ענק!! קודם כל תענוג, לקרוא את הפוסט ובטח ובטח את הטיפים על הפונטים. מחכה לבא בתור</div>
        <div class="from">@rachelm.studio</div>
      </div>
    </li>
    <li>
      <div class="avatar"><img src="https://i.pravatar.cc/300
  " alt=""></div>
      <div class="bubble">
        <div class="text">איזו תבונה רגשית... ברמה עליונה. מדהים כמה אור אתה מכניס לאותיות (אגב "עברית" כי תמיד יש מעבר). נהנת ממך</div>
        <div class="from">@shaniasor</div>
      </div>
    </li>
    <li>
      <div class="avatar"><img src="https://i.pravatar.cc/300
  " alt=""></div>
      <div class="bubble">
        <div class="text">אלרון, אתה פשוט ענק!! קודם כל תענוג, לקרוא את הפוסט ובטח ובטח את הטיפים על הפונטים. מחכה לבא בתור</div>
        <div class="from">@michal_motai</div>
      </div>
    </li>
    <li>
      <div class="avatar"><img src="https://i.pravatar.cc/300
  " alt=""></div>
      <div class="bubble">
        <div class="text">הטיפים שלך פשוט אדיריםםםםם</div>
        <div class="from">@sapir__benda</div>
      </div>
    </li>
    <li>
      <div class="avatar"><img src="https://i.pravatar.cc/300
  " alt=""></div>
      <div class="bubble">
        <div class="text">אוי לא! אפשר עוד? אני לא רוצה שזה ייגמר.
        <div class="from">@rom.ozer</div>
      </div>
    </li>
  </ul>
</div>

<div align="center">
  <div class="dots-wrap">
    <span class="dots-cont">
      <span class="dot dot-1"></span>
      <span class="dot dot-2"></span>
      <span class="dot dot-3"></span>
    </span>
  </div>
</div>
              
            
!

CSS

              
                body {
  font-family: 'FtMonopol 1.05', sans-serif;
  direction:rtl;
  line-height:1.3;
  font-size:1em;
}

h1 {
  margin: 100px 0 0;
  text-align: center;
  color: #444;
}

.tagline {
  margin: 10px 0 0;
  text-align: center;
}

.tagline,
.tagline a {
  color: #aaa;
  text-decoration: none;
}

.feedback-messages-container {
  position:relative;
  &:before {
    content:'';
    top:0;
    left:0;
    right:0;
    height:2.5em;
    position:absolute;
    display:block;
    background:linear-gradient(0deg,transparent,#fff);
  }
}

ul.feedback-messages {
  width: 22em;
  padding: 0;
  margin: 0 auto;
  display:flex;
  flex-direction:column;
  flex-flow:column-reverse;
  
  li {
    list-style-type: none;
    padding: 0 0 1em;
    margin: 0;
    transition: background-color 0.5s;
    display:inline-flex;
    align-items:end;
    &.odd {
      .bubble {
        background:#FFCCD3;
      }
    }
    .avatar {
      border-radius:100%;
      overflow:hidden;
      margin:0 0 0 0.5em;
      width:40%;
      max-width:10em;
      flex-grow:1;
      img {
        display:block;
        max-width:100%;
        height:auto;
      }
    }
   
    
    .bubble {
      background: #FFEBED;
      color: #804D57;
      padding: 1.5em 1.6em;
      border-radius:1.3em;
      width:100%;
      .text {
      }
      .from {
        margin-top:0.5em;
        font-weight:400;
        font-size:0.7em;
        direction:ltr;
      }
    }
  }
}





$dot-size: 0.6em;
$dot-jump-height:0.4em;
$dot-color: #875A63;
$dot-space: 0.1em;
$dot-box-padding: 1.5em 2.5em;
$dot-box-border-radius:2em;
$dot-speed: 100ms;

.dots-wrap {
  margin-top:0;
  background: #FFCCD3;
  color:#875A63;
  padding:$dot-box-padding;
  border-radius:$dot-box-border-radius;
  display:inline-block;
  text-align:center;
  &.light {
    background: #FFEBED;
  }
}

.dots-cont {
  display:block;
  text-align:center;
  line-height:0;

  .dot {
    display: inline-block;
    border-radius: 50%;
    width: $dot-size;
    height: $dot-size;
    background: $dot-color;
    margin: 0px $dot-space;
    animation: jump 1s infinite;
  }
  .dot-1 {
    animation-delay: $dot-speed * 1;
  }
  .dot-2 {
    animation-delay: $dot-speed * 2;
  }
  .dot-3 {
    animation-delay: $dot-speed * 3;
  }
  @keyframes jump {
     0%   {transform: translateY(0);}
     20%  {transform: translateY(0 - $dot-jump-height)}
     40%  {transform: translateY(0) }
  }
}


// .dots-cont:hover > .dot {
//   /* position: relative; */
//   /* bottom: 0px; */
//   animation: none;
// }

              
            
!

JS

              
                var x = 0,
    container = $('.feedback-messages'),
    items = container.find('li'),
    containerHeight = 0,
    numberVisible = 3,
    intervalSec = 4000;

if(!container.find('li:first').hasClass("first")){
  container.find('li:first').addClass("first");
}

items.each(function(){
  if(x < numberVisible){
    containerHeight = containerHeight + $(this).outerHeight();
    x++;
  }
});

container.css({ height: containerHeight, overflow: "hidden" });

var isOdd = true;

items.each(function(){
  $(this).css('visibility', 'hidden');
});
$('.dots-wrap').hide();
  
function vertCycle() {
  $('.dots-wrap').hide();
  
  
  setTimeout(function(){
    $('.dots-wrap').fadeIn();
  }, intervalSec/3);
  
  container.find('li:first').animate({ marginBottom: 0+"px" }, 500, function(){
    container.find('li:last').remove();  
    isOdd = !isOdd;
    
    
    // adds last item to be the first item
    var freshItem = container.find('li:last').html();
    height = container.find('li:last').outerHeight();
    container.prepend('<li>'+freshItem+'</li>');
    if(isOdd) container.find('li:first').addClass('odd');
    container.find('li:first').css('marginBottom', 0-height+"px" );
    $('.dots-wrap').toggleClass('light');
    freshItem = '';
    // container.find('li:first').addClass("first"); 
  });
}

if(intervalSec < 700){
  intervalSec = 700;
}
vertCycle();
var init = setInterval("vertCycle()",intervalSec);

// container.hover(function(){
//   clearInterval(init);
// }, function(){
//   init = setInterval("vertCycle()",intervalSec);
// });
              
            
!
999px

Console