Jump to content

Carousel Testimonials Autoplay & Loop

Recommended Posts

  • 2 weeks later...
  • Replies 5
  • Views 1.8k
  • Created
  • Last Reply
  • 3 weeks later...
On 2/23/2021 at 3:41 PM, freelancervillepalmu said:

Hey! Is this slider from the earlier Squarespace? I'm trying to do the same layout but with Squarespace 7.1. but cannot find anything that does this. 

You mean Gallery Reel? If you share link to page where you use gallery, we can give the code

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 3 weeks later...
On 3/17/2021 at 6:13 PM, freelancervillepalmu said:

Hey tuahphan!

I'm not using it anywhere, yet 🙂 But I need a way to display 3-5 separate testimonials one at a time on the front page. Just text content. 

You can add a Code Block >> Paste this code

<div class="container">
  <div class="text-container">
    <div class="carousel">
      <div class="inner">
        <div class="element">CSS Experiment</div>
        <div class="element">Text Carousel</div>
        <div class="element">No Javascript</div>
        <div class="element">CSS Animation</div>
        <div class="element">CSS Experiment</div>
      </div>
    </div>
  </div>
</div>
<style>
  .container {
  background: #de2d26;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFF;
  font-size: 1.5em;
  margin-bottom: 30px;
}

.carousel {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
  height: 32px;
  margin: 0 auto;
  text-align: center;
}
.inner {
    animation: scroll 5s ease-in-out infinite;
}
.element {
  font-size: 1.1em;
  text-shadow: 0px 2px 2px #fba09d;
}

@keyframes scroll {
  0%, 20% {
		transform: translateY(0);
	}
	25%,45% {
		transform: translateY(-32px);
	}
	50%,70% {
		transform: translateY(-64px);
	}
	75%,95% {
		transform: translateY(-96px);
	}
	100% {
		transform: translateY(-124px);
	}
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.